bug-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 12:16:23 +0800

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

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

reply via email to

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