Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #11523

Re: Misused term "subshell" in §3.3 of the Bash Manual

Path csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!usenet.stanford.edu!not-for-mail
From Stephane Chazelas <stephane.chazelas@gmail.com>
Newsgroups gnu.bash.bug
Subject Re: Misused term "subshell" in §3.3 of the Bash Manual
Date Mon, 21 Sep 2015 14:58:58 +0100
Lines 20
Approved bug-bash@gnu.org
Message-ID <mailman.1539.1442843946.19560.bug-bash@gnu.org> (permalink)
References <726AC67C-1BA2-46B5-B9A3-B9263EDCD82C@qq.com> <20150921124942.GG25574@eeg.ccf.org>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
X-Trace usenet.stanford.edu 1442843946 21264 208.118.235.17 (21 Sep 2015 13:59:06 GMT)
X-Complaints-To action@cs.stanford.edu
Cc bug-bash@gnu.org
To Greg Wooledge <wooledg@eeg.ccf.org>
Envelope-to bug-bash@gnu.org
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=SnD9VxJD8sjhdk2djMxjRuMTD7BJWtPosd2dHPOjBlw=; b=tp74a9nvnuBH5ZUbdTiMp9CRDRvBXPuJpHu7ozQERxgkjv62fkrjl9hnxXGkmMiZtj mlRuEgYicc4XW8gLq9ryN1soG2Xx04/9ouizfBemI1ZQbo6ThnRjADp/mWCDAk6WNfuo wycHoUqOWmrRiTaNJJEpG0UYRm4p1xn+BNe0ZR9Fk1zeu7tV5oJRbp3TlmVu130zoX26 7eLTHhd6caTD3Y3XxHY/UKbxNBEM3HVqS/nPengsAZY8+cGBdDe6OALG2dzEEauvX/EN sMk5EA6isLNeSDzFTmS5SL/UMjpYuih3443mcb/dxl+agfNEaYAlizsS7+wWmhhoCd9u 8K6Q==
X-Received by 10.194.87.129 with SMTP id ay1mr10784393wjb.110.1442843940034; Mon, 21 Sep 2015 06:59:00 -0700 (PDT)
Content-Disposition inline
In-Reply-To <20150921124942.GG25574@eeg.ccf.org>
User-Agent Mutt/1.5.21 (2010-09-15)
X-detected-operating-system by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value).
X-Received-From 2a00:1450:400c:c05::22d
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.14
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <http://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
Xref csiph.com gnu.bash.bug:11523

Show key headers only | View raw


2015-09-21 08:49:42 -0400, Greg Wooledge:
> On Mon, Sep 21, 2015 at 07:45:25PM +0800, ziyunfei wrote:
> > "Functions may be exported so that *subshells* automatically have them defined with the -f option to the export builtin"
> > 
> > Technically, a child shell process forked/execed by the current shell is not a real subshell,  am I right?	
> 
> I agree with you, but it's not clear what the best wording should be.
> Exported functions only work when the (grand)child process receiving
> them is another instance of bash.
[...]

It's not that much the process parent/child relationship that
matters. "export" if for passing things to *executed* commands
(the environment is something that is passed to the execve()
system call, whether in the current shell process or child or
grandchild... one).

-- 
Stephane

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: Misused term "subshell" in §3.3 of the Bash Manual Stephane Chazelas <stephane.chazelas@gmail.com> - 2015-09-21 14:58 +0100

csiph-web