[Gllug] Why does this script not work?

Vincent AE Scott gllug at codex.net
Tue Dec 11 10:24:19 UTC 2001


Nix(nix at esperi.demon.co.uk)@Mon, Dec 10, 2001 at 10:03:26PM +0000:
> On Mon, 10 Dec 2001, Vincent AE Scott uttered the following:
> > Colin Murphy(colin at ql4ever.demon.co.uk)@Mon, Dec 10, 2001 at 10:16:42AM +0000:
> >> How do I set my current directory to that set in the script.
> > 
> > append :
> > exec /bin/bash
> > 
> > is one option.
> 
> This would give you a new subshell every time you ran that script; if it
> was used anything like `cd', you'd end up with about a hundred million
> subshells to exit back out of.
> 

hmm, i was under the impression that exec replaced the current process
with a new one?

-- 

PGP key:  http://codex.net/pgp/pgp.asc

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list