Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #16494
| From | Dmitry Alexandrov <dag@gnui.org> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | ‘command … &’ creates subshell |
| Date | 2020-06-29 23:33 +0300 |
| Message-ID | <mailman.672.1593462839.2574.bug-bash@gnu.org> (permalink) |
| References | <pn9hipci.dag@gnui.org> |
[Multipart message — attachments visible in raw view] - view raw
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ʼs counter-intuitive and (c) other bourne-like shells (busybox ash, dash, ksh93, mksh, zsh) does not do that; 2) inconvenient, as in some cases PID of the parent shell is not an appropriate substitute for the PID of the real process.
Back to gnu.bash.bug | Previous | Next | Find similar
‘command … &’ creates subshell Dmitry Alexandrov <dag@gnui.org> - 2020-06-29 23:33 +0300
csiph-web