[Gllug] Why does this script not work?

tet at accucard.com tet at accucard.com
Tue Dec 11 10:20:23 UTC 2001


>> 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 there are other reasons
why this is a bad idea (think about what happens should you change
directory while you have a process suspended, for example).

Tet (confused as to why typing "cd .." is so hard anyway...)

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




More information about the GLLUG mailing list