From: Andreas K. <andreask@ActiveState.com> - 2004-08-24 17:44:29
|
I would like to point the people here to the RFE https://sourceforge.net/tracker/index.php?func=detail&aid=1015402&group_id=1 2883&atid=362883 which is a for a package 'which', which (sic) is for searching the PATH. I currently see no real need for it, because of the core 'auto_execok'. There a differences however, if I read the documentation right: * auto_execok returns a list, thus able to find and return commands requiring the cmd.com on Windows. which returns just the path, and is not able to find shell builtins. * which uses 'file executable' to check if a file is executable. I do not know if that is really cross-platform. On windows we can execute something which is not executable, simply through its association. Example: % auto_execok tkcon.tcl C:/Tcl/tdk31_109000/bin/tkcon.tcl % file executable [auto_execok tkcon.tcl] 0 % And I can still run 'tkcon.tcl' just so. Any other comments regarding this RFE ? -- Andreas Kupries <andreask@ActiveState.com> Developer @ http://www.ActiveState.com, a division of Sophos Tel: +1 604 484 6491 |