Re: Bug: 'case' in command substitution not handled correctly

2009-04-15 Thread Chet Ramey
Bernd Eggink wrote: > GNU bash, Version 4.0.17(1)-release (i686-pc-linux-gnu) > > The shell doesn't recognize the closing parenthesis of a command > substitution if a 'case' command is included and 'esac' is preceded by > newline. Example: > > x=$(case $a in >> (1) echo one >> esac >> ) >> > Tr

Re: [a-f]* style globbing broken

2009-04-15 Thread Chet Ramey
seren...@exscape.org wrote: > Bash Version: 4.0 > Patch Level: 17 > Release Status: release > > Description: > When using [a-*] globbing options, the very last UPPERCASE letter is > not matched, however all other ones are. > > Repeat-By: > mkdir test; cd test; for LETTER in {a..f};

[a-f]* style globbing broken

2009-04-15 Thread serenity
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: x86_64-pc-linux-gnu-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/s

Bug: 'case' in command substitution not handled correctly

2009-04-15 Thread Bernd Eggink
GNU bash, Version 4.0.17(1)-release (i686-pc-linux-gnu) The shell doesn't recognize the closing parenthesis of a command substitution if a 'case' command is included and 'esac' is preceded by newline. Example: x=$(case $a in > (1) echo one > esac > ) > You can enter as many ')' as you like,

Re: Silent errors in process substitution

2009-04-15 Thread Greg Wooledge
On Wed, Apr 15, 2009 at 02:46:45PM +0200, Anakim Border wrote: > is there any way to notice commands exiting with a non-zero status > inside a process substitution? > > For example: > > $ cat <(exit 1) > > ignores the exit status of "exit": The whole point of the process substitution syntax is

Silent errors in process substitution

2009-04-15 Thread Anakim Border
Hi, is there any way to notice commands exiting with a non-zero status inside a process substitution? For example: $ cat <(exit 1) ignores the exit status of "exit": $ echo $? 0 I'm searching for something like "set -e" (doesn't work in this case) to make the whole command fail. I'm using b