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


Groups > gnu.bash.bug > #16510

Re: ‘command … &’ creates subshell

Path csiph.com!goblin2!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail
From Dmitry Alexandrov <dag@gnui.org>
Newsgroups gnu.bash.bug
Subject Re: ‘command … &’ creates subshell
Date Wed, 01 Jul 2020 18:29:46 +0300
Lines 32
Approved bug-bash@gnu.org
Message-ID <mailman.767.1593617396.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>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature"
X-Trace usenet.stanford.edu 1593617396 5436 209.51.188.17 (1 Jul 2020 15:29:56 GMT)
X-Complaints-To action@cs.stanford.edu
Cc Eli Schwartz <eschwartz@archlinux.org>, bug-bash@gnu.org
To Robert Elz <kre@munnari.OZ.AU>
Envelope-to bug-bash@gnu.org
X-EA-Auth xcIoJtjIp0BUvxSNIOLmpoiEo4oaVmkoBmFlPPAbOS1gmc94JQq0lS/acWZf2AaIjqBLi9PiMC5SyGJGe8oQpDh1sgAqRS/H
In-Reply-To <2643.1593599092@jinx.noi.kre.to> (Robert Elz's message of "Wed, 01 Jul 2020 17:24:52 +0700")
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
OpenPGP id=525F7E60AD812C2361752BB4C8B0F8548EE7F3E7; url=https://openpgpkey.gnui.org/.well-known/openpgpkey/gnui.org/hu/hr4k5tkxm6shwdc18su4bkm34w3dctjd
Mail-Copies-To always
Received-SPF pass client-ip=213.182.54.5; envelope-from=dag@gnui.org; helo=relay-2.mailobj.net
X-detected-operating-system by eggs.gnu.org: First seen = 2020/07/01 11:29:49
X-ACL-Warn Detected OS = Linux 3.1-3.10
X-Spam_score_int -18
X-Spam_score -1.9
X-Spam_bar -
X-Spam_report (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-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 <pn9ffe39.dag@gnui.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>
Xref csiph.com gnu.bash.bug:16510

Show key headers only | View raw


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

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.

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


Thread

Re: ‘command … &’ creates subshell Dmitry Alexandrov <dag@gnui.org> - 2020-07-01 18:29 +0300

csiph-web