[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bash-bug
Subject:    Re: 'bash -c' does not execute 'trap ... EXIT' command when last command is an external command
From:       Chet Ramey <chet.ramey () case ! edu>
Date:       2008-10-15 2:41:32
Message-ID: 48F5585C.4040603 () case ! edu
[Download RAW message or body]

Steffen Kieß wrote:
> Configuration Information [Automatically generated, do not change]:
> Machine: x86_64
> OS: linux-gnu
> Compiler: gcc
> Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64'
> -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-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 fips 2.6.24-1-amd64 #1 SMP Sat May 10 09:28:10 UTC
> 2008 x86_64 GNU/Linux
> Machine Type: x86_64-pc-linux-gnu
> 
> Bash Version: 3.2
> Patch Level: 39
> Release Status: release
> 
> Description:
> 'bash -c' does not execute a 'trap ... EXIT' command when the last
> command is an external command.

Thanks for the report.  This has been fixed for the next version of bash.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer

Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic