- To: SLUG list <slug@xxxxxxxxxxx>
- Subject: Re: [SLUG] shell scripting help
- From: Gonzalo Servat <gservat@xxxxxxxxx>
- Date: Sat, 19 Sep 2009 01:14:13 +1000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=2S2Vuq7dH0otUdGGIitEAY59MeNkL8Cdg7FGM5WMLXw=; b=Q30hnc6DZIhjxrJZO9Nu32acMnm5oBFr9bC30VXnpUdhGdu6PMYoWdBuFlKUjuFcO0 vq0bTZqs70cMEYtVqxbXARJAX1R7dM2vWzMoYGhoYAY0stfCWyX2ZAz7HdIPIQ8nZNcS M/nsVUWyMiYnpiiT37qcykAQx1/d0pPUiJeXw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=vpKNTwXA0N8Dm6bVgKAv1znPcAgJ32k+tdxFDCmQN3Sl2EhdsLT1dVIR4tLL9jM++F URyOJlNEIXwkB9UY1A1m9torpA48ObPnXqskYmnppT6nASaTyCuUFDsY0COQSBWIlpVx woCiq+0sbhlQb68kunyaWTN/T2aupkC9Bo+Pw=
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