<<< Date Index >>>     <<< Thread Index >>>

Re: when using `which` send errors to /dev/null



On 2007-05-24 10:28:35 -0500, David Champion wrote:
> PATH_SEPARATOR does not exist in a Bourne shell.  It may be POSIX, but
> only a few shells are indeed POSIX; whereas the convention for calling a
> shell script does not specify POSIX shells, only /bin/sh.

PATH_SEPARATOR is user code only. Not all systems use ':' as the PATH
separator, so a shell script shouldn't assume that ':' is necessarily
the PATH separator.

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)