Stephane Chazelas wrote:
> [ -e "$cmd" ] || cmd=$(command -v -- "$cmd") || exit
> Bob Proulx wrote:
> > Of course using command as you have done will work for bash.
>
> "command" is a POSIX command. So will work with every POSIX and
> therefore every Unix conformant sh.
That is not strictly tru
[EMAIL PROTECTED] (Bob Proulx) writes:
>> 2- word splitting when IFS contains non-blank characters varies
>> from one shell to the next, and in most implementations
>> (including bash and AT&T ksh, it differs from the way the shell
>> splits $PATH internally to look up a command ("/bin:" is "/bin"