Tugger the SLUGger!SLUG Mailing List Archives

Re: [SLUG] shell scripting help


On Sat, Sep 19, 2009 at 1:08 AM, Gonzalo Servat <gservat@xxxxxxxxx> wrote:
> You could replace $$ with $BASH_SUBSHELL (boolean indicating if you're
> in a subshell). Output:

Err, sorry, $BASH_SUBSHELL indicates the level of subshell (0 =
parent, 1 = first subshell, etc), not a boolean.

- Gonzalo