bug-bash
[Top][All Lists]
Advanced

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

Error in the 'help' builtin's documentation of 'wait'


From: Pablo Ramella
Subject: Error in the 'help' builtin's documentation of 'wait'
Date: Mon, 11 Apr 2011 15:00:08 -0400

Configuration Information [Automatically generated, do not change]:
Machine: i486
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i486'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL
-DHAVE_CONFIG_H   -I.  -I../bash -I../bash/include -I../bash/lib   -g -O2
-Wall
uname output: Linux cerberus 2.6.32-5-686 #1 SMP Wed Jan 12 04:01:41 UTC
2011 i686 GNU/Linux
Machine Type: i486-pc-linux-gnu

Bash Version: 4.1
Patch Level: 5
Release Status: release

Description:
    There's a conflict between the wait builtin's help text and the manual
text.  ''help wait'' suggests that you can only wait on one or zero
PIDS/jobspecs.
    The manual, on the other hand says ''Wait for each specified process and
return its termination  status.''
    The latter describes bash's actual behavior.

Repeat-By:
    help wait

    vs.

    man bash, SHELL BUILTIN COMMANDS

    sleep 10 & a=$!
    sleep 12 & b=$!
    sleep 20 & wait $a $b   # works, contrary to the description in ''help
wait''

 Fix:
    Update ''help wait''


reply via email to

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