[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] Why BASH_SUBSHELL behaves differently in () and <()?
From: |
Greg Wooledge |
Subject: |
Re: [Help-bash] Why BASH_SUBSHELL behaves differently in () and <()? |
Date: |
Fri, 18 Sep 2015 08:35:26 -0400 |
User-agent: |
Mutt/1.4.2.3i |
On Fri, Sep 18, 2015 at 01:46:45PM +0800, ziyunfei wrote:
> 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.
I think you mean "should" rather than "must". I.e. you would like bash
to treat them both the same. However, it doesn't (currently).
In http://lists.gnu.org/archive/html/help-bash/2015-04/msg00013.html
Chet says it will be fixed in the next release of bash.