bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bash] wait: specify that you can only wait for child PIDs


From: Jonathan Nieder
Subject: Re: [bash] wait: specify that you can only wait for child PIDs
Date: Sat, 6 Jul 2013 18:31:15 -0700
User-agent: Mutt/1.5.21 (2010-09-15)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]