bug-bash
[Top][All Lists]
Advanced

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

"trap 0" prints usage message


From: Jens . Schweikhardt
Subject: "trap 0" prints usage message
Date: Tue, 22 Mar 2005 14:49:13 +0100 (CET)

Configuration Information [Automatically generated, do not change]:
Machine: i586
OS: linux
Compiler: gcc -I/usr/src/packages/BUILD/bash-3.0 
-L/usr/src/packages/BUILD/bash-3.0/../readline-5.0
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i586' 
-DCONF_OSTYPE='linux' -DCONF_MACHTYPE='i586-suse-linux' -DCONF_VENDOR='suse' 
-DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H  -I.  
-I. -I./include -I./lib   -O2 -march=i586 -mcpu=i686 -fmessage-length=0 -Wall 
-D_GNU_SOURCE -Wall -pipe -g -fbranch-probabilities
uname output: Linux debk1627 2.6.8-24.11-smp #1 SMP Fri Jan 14 13:01:26 UTC 
2005 i686 i686 i386 GNU/Linux
Machine Type: i586-suse-linux

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

Description:
        It appears "trap 0" does no longer restore the default "exit" handler.
        Instead, a usage message is printed.

        According to the man page, I expect this to work:
        $ man bash

        trap [-lp] [[arg] sigspec ...]
                          The command arg is to  be  read  and  executed  when  
the  shell
                          receives  signal(s)  sigspec.   If arg is absent (and 
there is a
                          single sigspec) or -, each specified  signal  is  
reset  to  its
                          original  disposition  (the  value  it  had upon 
entrance to the
                          shell).

Repeat-By:
        sh-3.00$ trap 0
        trap: usage: trap [-lp] [[arg] signal_spec ...]

        sh-3.00$ trap exit
        trap: usage: trap [-lp] [[arg] signal_spec ...]





reply via email to

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