On 2/26/13 12:41 AM, Linda Walsh wrote:
> It isn't using the current value of SHELL as my shell nor the value
> of my login shell.
It uses $0 (or, rather, the basename of $0), which is initialized from
the parent shell's argv[0]. What is $0 set to?
>
> It is forcing interpretation into /bin/sh, which I don't use.
Not quite. It is enabling posix mode. There are a couple of ways to
do that: $POSIXLY_CORRECT, $0 == "sh", or set -o posix.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU [email protected] http://cnswww.cns.cwru.edu/~chet/