Debian Bug report logs -
#714743
[bash] wait: specify that you can only wait for child PIDs
Reply or subscribe to this bug.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, Matthias Klose <doko@debian.org>:
Bug#714743; Package bash.
(Tue, 02 Jul 2013 12:18:06 GMT) (full text, mbox, link).
Acknowledgement sent
to Török Edwin <edwin@etorok.net>:
New Bug report received and forwarded. Copy sent to Matthias Klose <doko@debian.org>.
(Tue, 02 Jul 2013 12:18:06 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: bash
Version: 4.2+dfsg-1
Severity: normal
--- Please enter the report below this line. ---
$ wait 1
bash: wait: pid 1 is not a child of this shell
The manpage of bash, dash and wait should mention that the PID has to be a child of the shell.
--- System information. ---
Architecture: amd64
Kernel: Linux 3.10.0
Debian Release: jessie/sid
500 unstable ftp.ro.debian.org
500 stable security.debian.org
500 stable ftp.ro.debian.org
--- Package information. ---
Depends (Version) | Installed
===========================-+-============
base-files (>= 2.1.12) | 7.2
debianutils (>= 2.15) | 4.3.4
Recommends (Version) | Installed
===================================-+-================
bash-completion (>= 20060301-0) | 1:2.0-1
Suggests (Version) | Installed
=======================-+-===========
bash-doc |
Information forwarded
to debian-bugs-dist@lists.debian.org, Matthias Klose <doko@debian.org>:
Bug#714743; Package bash.
(Sun, 07 Jul 2013 01:33:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Jonathan Nieder <jrnieder@gmail.com>:
Extra info received and forwarded to list. Copy sent to Matthias Klose <doko@debian.org>.
(Sun, 07 Jul 2013 01:33:04 GMT) (full text, mbox, link).
Message #10 received at 714743@bugs.debian.org (full text, mbox, reply):
Hi,
Török Edwin wrote[1]:
> $ wait 1
> bash: wait: pid 1 is not a child of this shell
>
> The manpage of bash, dash and wait should mention that the PID has to be a child of the shell.
How about this patch? (Should be applicable to the "devel" branch by
saving this message in mbox format and applying with "git am --scissors".)
-- >8 --
Subject: bash.1: processes waited for by "wait" are children
Reported-by: Török Edwin <edwin@etorok.net>
---
Thanks,
Jonathan
[1] http://bugs.debian.org/714743
doc/bash.1 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/bash.1 b/doc/bash.1
index fb4795a..58da8ce 100644
--- a/doc/bash.1
+++ b/doc/bash.1
@@ -10071,7 +10071,7 @@ subsequently reset. The exit status is true unless a
is readonly.
.TP
\fBwait\fP [\fB\--n\fP] [\fIn ...\fP]
-Wait for each specified process and return its termination status.
+Wait for each specified child process and return its termination status.
Each
.I n
may be a process
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Wed Dec 6 08:13:11 2023;
Machine Name:
bembo
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.