'cd' in shell-script or .profile
Doug Gwyn
gwyn at smoke.BRL.MIL
Mon Jun 18 08:23:01 AEST 1990
In article <111 at npdiss1.StPaul.NCR.COM> mercer at npdiss1.StPaul.NCR.COM (Dan Mercer) writes:
>There are two ways of executing a Bourne shell script
There is a third way, which is the one that is relevant here -- the
shell automatically sources the script. This is always done for
~/.profile in a login shell and may also be done for some enhanced
shells on a per-interactive-shell basis. These scripts are supposed
to be executed in the current context of the shell, so their effects
are supposed to stick.
More information about the Comp.unix.questions
mailing list