[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: environment
From: |
Sitaram Chamarty |
Subject: |
Re: environment |
Date: |
Fri, 13 Feb 2009 14:23:36 +0000 (UTC) |
User-agent: |
slrn/0.9.9 (Linux) |
On 2009-02-13, Antonio Macchi <antonio_macchi@alice.it> wrote:
> i think that
>
> $ ( echo $x )
>
> is like
>
> $ bash -c 'echo $x'
it is confusing I agree. 'man bash' and look for the
section 'COMMAND EXECUTION ENVIRONMENT', which essentially
says that a simple command gets a different environment
(namely only the exported variables) than 'commands grouped
with parantheses'.