[Gllug] Why does this script not work?

Jonathan Dye jonathan.dye at automationpartnership.com
Tue Dec 11 09:34:36 UTC 2001


At 10:20 11/12/01 +0000, you wrote:

>>> 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.
>
>Errr.... no. That's what the "exec" is for.

But isn't the script run in a subshell anyway and therefore the exec will
just replace the subshell with /bin/bash leaving you with a subshell!

JD


_____________________________________________________________________
This message has been checked for all known viruses by the 
MessageLabs Virus Scanning Service

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




More information about the GLLUG mailing list