Re: Bug when trapping exit from subshell

2014-05-16 Thread Maarten Billemont
the exit handler is called, you just muted it. remove the redirections, and you'll also notice you need a space after your ! On 16 May 2014 12:41, Mark Ferrell wrote: > The following script properly reports the exit code to the calling > environment, , but the exit handler is not called if a f

Bug when trapping exit from subshell

2014-05-16 Thread Mark Ferrell
The following script properly reports the exit code to the calling environment, , but the exit handler is not called if a function triggers the exit vs an external command. Script executed via: bash

Re: $HOME does not get abbreviated in prompt \w output when there is a trailing slash

2014-05-16 Thread Libor Pechacek
Hi Chet, On Fri 16-05-14 09:13:34, Chet Ramey wrote: > On 5/16/14, 5:22 AM, Libor Pechacek wrote: > > > Bash Version: 4.2 > > Patch Level: 46 > > Release Status: release > > > > Description: > > Bash prompt always shows full path in prompt instead of tilde > > abbreviation when $HOME end

Re: $HOME does not get abbreviated in prompt \w output when there is a trailing slash

2014-05-16 Thread Chet Ramey
On 5/16/14, 5:22 AM, Libor Pechacek wrote: > Bash Version: 4.2 > Patch Level: 46 > Release Status: release > > Description: > Bash prompt always shows full path in prompt instead of tilde > abbreviation when $HOME ends with slash. This came up in March, 2012: http://lists.gnu.org/ar

$HOME does not get abbreviated in prompt \w output when there is a trailing slash

2014-05-16 Thread Libor Pechacek
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc -I/home/abuild/rpmbuild/BUILD/bash-4.2 -L/home/abuild/rpmbuild/BUILD/bash-4.2/../readline-6.2 Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -D