bug-bash
[Top][All Lists]
Advanced

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

Re: 'bash -c' does not execute 'trap ... EXIT' command when last command


From: Chet Ramey
Subject: Re: 'bash -c' does not execute 'trap ... EXIT' command when last command is an external command
Date: Tue, 14 Oct 2008 22:41:32 -0400
User-agent: Thunderbird 2.0.0.17 (Macintosh/20080914)

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/




reply via email to

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