changing dir inside shell
Richard A. O'Keefe
ok at quintus.uucp
Thu Jul 28 14:04:29 AEST 1988
In article <16654 at brl-adm.ARPA> rbj at nav.icst.nbs.gov (Root Boy Jim) writes:
...
>1) If `sh' or `ksh' is your parent shell, type ". mover".
> You may also use shell functions, or even aliases if you prefer.
...
>Note that sourcing a file is less flexible, as you cannot pass any
>parameters ($1, $2, etc) to it. With shell functions and aliases you can.
You can pass parameters to a sourced file using named variables.
E.g. suppose file "demo" contains
echo $arg1
and you do
arg1=example . demo
More information about the Comp.unix.questions
mailing list