On Fri, Mar 25, 2011 at 2:17 AM, Greg Wooledge wrote:
> On Thu, Mar 24, 2011 at 06:07:33PM +, Marc Herbert wrote:
> > Not every feature is complicated enough that it requires special
> > documentation care and that it raises a discussion here.
>
> BASH_SUBSHELL isn't complicated at all. It's
On 03/24/2011 10:54 AM, Gustavo Serra Scalet wrote:
> Description:
> When an alias is supplied to a command (e.g: alias c="cd") the
> complete doesn't complete like it used when using the original text,
> without
> using alias (e.g $ c # returns all files, not just
> directories)
>
>
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-redhat-linux-gnu'
-DCONF_VENDOR='redhat' -DLOCALEDIR='/usr/share/locale' -
On Thu, Mar 24, 2011 at 06:07:33PM +, Marc Herbert wrote:
> Not every feature is complicated enough that it requires special
> documentation care and that it raises a discussion here.
BASH_SUBSHELL isn't complicated at all. It's just documented in a
confusing way. It doesn't require an examp
Le 24/03/2011 14:50, Greg Wooledge a écrit :
> On Thu, Mar 24, 2011 at 02:33:19PM +, Marc Herbert wrote:
>> I would also like to see this example in the documentation:
>>
>> $ ( echo sub-$BASH_SUBSHELL ); echo main-$BASH_SUBSHELL
>> sub-1
>> main-0
>
> Overkill.
Tradeoff.
> Most of the other
On Thu, Mar 24, 2011 at 02:33:19PM +, Marc Herbert wrote:
> I would also like to see this example in the documentation:
>
> $ ( echo sub-$BASH_SUBSHELL ); echo main-$BASH_SUBSHELL
> sub-1
> main-0
Overkill. Most of the other features in the manual do not have such
examples, and if we added e
Le 23/03/2011 20:28, Chet Ramey a écrit :
> On 3/23/11 4:15 PM, Sam Liddicott wrote:
>
>> Yes. But a new subshell environment has been spawned. Each time that
>> happens BASH_SUBSHELL should increase.
>>
>> Of course I know how it does work, but the man page isn't clear. It doesn't
>> say that the