Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Jan 95 14:46 EST
From:      pirzyk@fa.disney.com
To:        FreeBSD-questions@FreeBSD.org
Subject:   Re: shell bug???
Message-ID:  <m0rVllk-0004CBC@snowhite.fa.disney.com>

next in thread | raw e-mail | index | archive | help
> > These commands only exist in my $ENV file, which is ~/etc/rc.ksh and
> > they do not happen when I test the file with 'ksh etc/rc.ksh'  Here
> > is a typescript of what I have tested.
> ...
> > The problem is that it seems that to run a subshell, it is first running
> > /bin/sh and the $ENV file gets executed through that.  This is the only
> > time I can force the errors to show up.
> 
> Somebody (ANSI, I think) decided that 'sh' would run $ENV, where it
> didn't before.  I had this same problem, fixed by changing .profile:

But why when I spawn a subshell is it running /bin/sh in the first place??

> 
> from:
> 
> export ENV=$HOME/etc/rc.ksh
> . $ENV
> 
> to:
> 
> export FILE=$HOME/etc/rc.ksh
> ENV='${FILE[(_$-=0)+(_=1)-_${-%%*i*}]}'
> export ENV


I tried this but it did not work.
---                                                                    __o
[Jim] pirzyk@fa.disney.com --------------------------------------    _'\<,_
System Administrator, Walt Disney Feature Animation Florida         (*)/ (*)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?m0rVllk-0004CBC>