help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] Why BASH_SUBSHELL behaves differently in () and <()?


From: ziyunfei
Subject: Re: [Help-bash] Why BASH_SUBSHELL behaves differently in () and <()?
Date: Fri, 18 Sep 2015 13:46:45 +0800

> The expansion is being done in the parent shell, rather than the subshell.

But as you said in 
http://lists.gnu.org/archive/html/help-bash/2015-04/msg00010.html
BASHPID is expanded in the subshell, so BASH_SUBSHELL must also be like that.
And I found a comment which says: "make the child early, before word expansion"
at http://code.metager.de/source/xref/gnu/bash/execute_cmd.c#3922

I accidentally sent this message to bug-bash too...




reply via email to

[Prev in Thread] Current Thread [Next in Thread]