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


Groups > gnu.bash.bug > #16512

Re: ‘command … &’ creates subshell

Path csiph.com!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:45:07 +0300
Lines 27
Approved bug-bash@gnu.org
Message-ID <mailman.770.1593618317.2574.bug-bash@gnu.org> (permalink)
References <511886e8-2262-39ee-2a01-7d284e981cb1@archlinux.org> <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> <24624.1593615917@jinx.noi.kre.to> <k0znfddo.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 1593618317 6289 209.51.188.17 (1 Jul 2020 15:45:17 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 eNZudmWydpn3pOGn8UMwGLC1tvXquPP7GQWjtbEvEA8hwSjHo4tuSlhq2KL5500fDui6NIEK6dQElzZCVlAVNvSdMc4l8yZi
In-Reply-To <24624.1593615917@jinx.noi.kre.to> (Robert Elz's message of "Wed, 01 Jul 2020 22:05:17 +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 <k0znfddo.dag@gnui.org>
X-Mailman-Original-References <511886e8-2262-39ee-2a01-7d284e981cb1@archlinux.org> <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> <24624.1593615917@jinx.noi.kre.to>
Xref csiph.com gnu.bash.bug:16512

Show key headers only | View raw


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

Robert Elz <kre@munnari.OZ.AU> wrote:
> The whole point of trying to find a technique like was hoped for using command, and others have used env for, and still others, (exec command) (none of which are guaranteed to work) is so that the script will work with different shells and in different environments.

One could argue, that an ability to ignore builtin utilities actually adds nothing to applicability of a script to different (unknown a priory) environments.  On the contrary — it can rather break things.

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


Thread

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

csiph-web