bug-bash
[Top][All Lists]
Advanced

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

improved posix conformance in "sh" mode makes the usage for trap incorre


From: afrayedknot
Subject: improved posix conformance in "sh" mode makes the usage for trap incorrect
Date: 5 Aug 2004 00:06:15 -0000

Configuration Information [Automatically generated, do not change]:
Machine: i686
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu' 
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL 
-DHAVE_CONFIG_H  -I.  -I. -I./include -I./lib   -O -march=pentium4 -mmmx 
-mfpmath=sse -msse -msse2 -pipe -O3
uname output: Linux thefrayedknot 2.4.25 #1 Sun Feb 29 13:01:22 PST 2004 i686 
unknown unknown GNU/Linux
Machine Type: i686-pc-linux-gnu

Bash Version: 3.0
Patch Level: 0
Release Status: release

Description:
        when bash is run as "sh", and from there you run "trap 0",
        trap exits with a usage message, presumably because according
        to posix the action is not optional, and none was specified. The
        current usage menu does not reflect this, and should be updated
        to show that the action is non-optional.

        This was newly introduced in bash 3.0, and was not present in
        bash 2.05b.

Repeat-By:
        run "trap 0" under "sh"
        $ /bin/sh
        $ trap 0 
        trap: usage: trap [-lp] [[arg] signal_spec ...]
        $ 

Fix:
        [Description of how to fix the problem.  If you don't know a
        fix for the problem, don't include this section.]




reply via email to

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