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


Groups > gnu.bash.bug > #16511

Re: ‘command … &’ creates subshell

Path csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail
From Eli Schwartz <eschwartz@archlinux.org>
Newsgroups gnu.bash.bug
Subject Re: ‘command … &’ creates subshell
Date Wed, 1 Jul 2020 11:31:45 -0400
Lines 71
Approved bug-bash@gnu.org
Message-ID <mailman.768.1593617519.2574.bug-bash@gnu.org> (permalink)
References <tuysgrgt.dag@gnui.org> <pn9hipci.dag@gnui.org> <ac4a98bd-32f4-5c55-3b8f-1306e9758f54@case.edu> <7dvoi92p.dag@gnui.org> <09ea84b2-4fb1-6b05-7c0b-fe6b2ab00c6f@archlinux.org> <2643.1593599092@jinx.noi.kre.to> <pn9ffe39.dag@gnui.org> <2109d9c1-d0b9-32a4-99e1-7db06a0a6e81@archlinux.org>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="90KLyGz3trK65RTm9net46s0aYJqMB7iN"
X-Trace usenet.stanford.edu 1593617519 5495 209.51.188.17 (1 Jul 2020 15:31:59 GMT)
X-Complaints-To action@cs.stanford.edu
Cc bug-bash@gnu.org
To Dmitry Alexandrov <dag@gnui.org>, Robert Elz <kre@munnari.OZ.AU>
Envelope-to bug-bash@gnu.org
X-Spam-BL-Results
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/simple; d=archlinux.org; s=orion; t=1593617510; bh=uyLeN+NN1dHybeurpVTwSpatmcWuNVfFjLqMbcA5CYw=; h=Subject:To:Cc:References:From:Date:In-Reply-To; b=v1wsPxzMnZ7tGlpmE//lZTQFcNSRm6PAi9LKUjW+EoykTQDPXPFEL1KWZF5XuipJp IxCe1Kz9DI/uvYL03aOZ47ad7lJEZ7BoAkjxT4ROmoDmtFIdwJgJkwKJUGKPo90/SM ZNZAJ8YxKRKvK1lJTlohwiiV8/AsiYIXw3CSayYfGBTo1FMCvUgd9PA2U82LB6zNQ3 +Ek6D/b4bIbXLJY1ou7pieRJjEoXXR0OvgGlrvTyZodjSID5ecjxydLWNLNrguGjLl 0zIuwt45mbPuKP1+4QtgrjEVlAotlH/ozWG1x8lJduMZgez8I6wTKAyNyT5x+yg5t6 T6jlVP4K/CkCK6PEmgth+GGJHeDQyp/p/mn9OMYAFjblBsZNUwidMP05w/WkumtqwK rH8HqEkx+5iIolXlcLr82vkXBqA5SVWDI946fAY+0/q/+L1MFwM3h5jFEc1XaoC6iL 12v+O2oiqrDUZVkXYQ7+pTrsPPneE9gYhMuo3GN4vTccZXX34PquCInQO2hQscAUhe lzlz86grsX1GN8+yVtveQUCR+rfBviQUquOMgfYVb/8UeSreU74nI9pAesQjwlmLfO iLdgTbI7MomKNtJDWLqCAG0HTB+7GN1HSrl9GSDRun+gigssXyiTkgmWdSilBZPj8H 2n3y8yaez9ObbGBP+lVGAujY=
X-Clacks-Overhead GNU Terry Pratchett
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0
In-Reply-To <pn9ffe39.dag@gnui.org>
Received-SPF pass client-ip=88.198.91.70; envelope-from=eschwartz@archlinux.org; helo=orion.archlinux.org
X-detected-operating-system by eggs.gnu.org: First seen = 2020/07/01 11:31:52
X-ACL-Warn Detected OS = Linux 2.2.x-3.x [generic] [fuzzy]
X-Spam_score_int -53
X-Spam_score -5.4
X-Spam_bar -----
X-Spam_report (-5.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN
X-Spam_action no action
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.23
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 <https://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>
X-Mailman-Original-Message-ID <2109d9c1-d0b9-32a4-99e1-7db06a0a6e81@archlinux.org>
X-Mailman-Original-References <tuysgrgt.dag@gnui.org> <pn9hipci.dag@gnui.org> <ac4a98bd-32f4-5c55-3b8f-1306e9758f54@case.edu> <7dvoi92p.dag@gnui.org> <09ea84b2-4fb1-6b05-7c0b-fe6b2ab00c6f@archlinux.org> <2643.1593599092@jinx.noi.kre.to> <pn9ffe39.dag@gnui.org>
Xref csiph.com gnu.bash.bug:16511

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On 7/1/20 11:29 AM, Dmitry Alexandrov wrote:
> Robert Elz <kre@munnari.OZ.AU> wrote:
>>   | > If you need to ensure a disk executable is used,
>>   | Of course.  Why "command" otherwise?
>>
>> That doesn't actually work, "command" can run built-ins
> 
> Ah, yes, thanks for correction.
> 
>> there is actually no method ‹…› which guarantees execution of an executable from an external file, other than by using the complete path name
> 
> Well, I am not sure whether itʼs guaranteed, but the ‘exec’ as above does execute an external command in GNU Bash.

And in busybox, just like "env" it runs busybox builtin applets.


-- 
Eli Schwartz
Arch Linux Bug Wrangler and Trusted User

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


Thread

Re: ‘command … &’ creates subshell Eli Schwartz <eschwartz@archlinux.org> - 2020-07-01 11:31 -0400

csiph-web