* Philip Hands said:
> Wait a second.
> 
> So this mc script is an attempt to leave you in the directory you were
> in when you left mc ?
[snip]
>   /etc
>   /tmp
> 
> the ``cd /etc'' only applies in the shell executed in the brackets.
> The same goes for the mc script. Any effect of the cd in the script is
> lost when the script exits.
Correct. My typo - it should be:

cd $(cat thetmpfile)

marek

Attachment: pgpJZEWHxM066.pgp
Description: PGP signature

Reply via email to