Path: csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail From: Dmitry Alexandrov Newsgroups: gnu.bash.bug Subject: =?utf-8?B?4oCYY29tbWFuZCDigKYgJuKAmQ==?= creates subshell Date: Mon, 29 Jun 2020 23:33:49 +0300 Lines: 37 Approved: bug-bash@gnu.org Message-ID: References: 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 1593462841 27238 209.51.188.17 (29 Jun 2020 20:34:01 GMT) X-Complaints-To: action@cs.stanford.edu To: bug-bash@gnu.org Envelope-to: bug-bash@gnu.org X-EA-Auth: PI9ZthIq6ODAJomQ9dt1jrwqJJAoegNn2aS5FhJN+0Ht5BkS2AJZ9czQVOMvrL6CIVcAeobMpGenekuVyyddgl7allArnEXf User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Received-SPF: pass client-ip=213.182.54.6; envelope-from=dag@gnui.org; helo=relay-1.mailobj.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/29 14:17:29 X-ACL-Warn: Detected OS = Linux 3.1-3.10 X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_MSPIKE_H2=-1, 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: Xref: csiph.com gnu.bash.bug:16494 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Dear maintainer, I believe, that the current behaviour of GNU Bash: $ command cat & [1] 3831 $ ps --pid $! --ppid $! PID TTY TIME CMD 3831 pts/3 00:00:00 bash 3832 pts/3 00:00:00 cat is problematic. Namely it is: 1) unexpected, as (a) it does not seem to be documented, (b) it=CA=BCs coun= ter-intuitive and (c) other bourne-like shells (busybox ash, dash, ksh93, m= ksh, zsh) does not do that; 2) inconvenient, as in some cases PID of the parent shell is not an appropr= iate substitute for the PID of the real process. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIMEARYIACsWIQRSX35grYEsI2F1K7TIsPhUjufz5wUCXvpQLQ0cZGFnQGdudWku b3JnAAoJEMiw+FSO5/Pnc70A/RpF5qvmZ+PT+KUx88zeZbgO2D74ghbF0T3/i7G7 Dou0AQDvvySe5p6rF0zSlrrQWjVBA9lS+xCXlH+zBZoPSX+0Cw== =8gk2 -----END PGP SIGNATURE----- --=-=-=--