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

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



On Fri, May 25, 2007 at 11:24:19AM +0200, Vincent Lefevre wrote:
> 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.

I'm not aware of any Unix-derivative systems where /bin/sh is
not a Bourne-shell derivative (Bourne Shell, Korn Shell, POSIX shell,
or Bash).  All of those shells use ':' as the path separator for
$PATH.  Can you suggest an example?

In any event,

-- 
Derek D. Martin    http://www.pizzashack.org/   GPG Key ID: 0xDFBEAD02
-=-=-=-=-
This message is posted from an invalid address.  Replying to it will result in
undeliverable mail due to spam prevention.  Sorry for the inconvenience.

Attachment: pgphF4qvU2eKa.pgp
Description: PGP signature