Re: bug on [A-Z] and [a-z]

2011-05-02 Thread DJ Mills
On Mon, May 2, 2011 at 9:23 AM, Bruno Cesar Ribas wrote: > On Mon, May 02, 2011 at 08:41:23AM -0400, Greg Wooledge wrote: > > On Sun, May 01, 2011 at 09:17:49PM -0500, Jonathan Nieder wrote: > > > Hi, > > > > > > ri...@inf.ufpr.br wrote: > > > > > > > When running "echo [A-Z]*" , it shows all

Re: incorrect associative array key parsing if they contain closing square bracket

2011-05-02 Thread Chet Ramey
On 5/2/11 9:14 AM, Rich wrote: > associative array key parsing seems to be incorrect if they contain closing > square bracket inside the array=([key]=value) construct. Yes, this is a known problem. Thanks for the report. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer

incorrect associative array key parsing if they contain closing square bracket

2011-05-02 Thread Rich
associative array key parsing seems to be incorrect if they contain closing square bracket inside the array=([key]=value) construct. the following testcase : $ declare -A key_full; key_full=(["version[agent]"]=agent.version); echo "${!key_full[@]}" --- results per version. --

bug on [A-Z] and [a-z]

2011-05-02 Thread ribas
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' -DPACKA

Re: bug on [A-Z] and [a-z]

2011-05-02 Thread Bruno Cesar Ribas
On Mon, May 02, 2011 at 08:41:23AM -0400, Greg Wooledge wrote: > On Sun, May 01, 2011 at 09:17:49PM -0500, Jonathan Nieder wrote: > > Hi, > > > > ri...@inf.ufpr.br wrote: > > > > > When running "echo [A-Z]*" , it shows all files/dirs of current > > > directory, not only those starting with

printf builtin - improper error report

2011-05-02 Thread Roman Rakus
Using bash 4.1.7: $ printf "ab\nc" > /dev/full bash: printf: write error: No space left on device bash: printf: write error: No space left on device $ /usr/bin/printf "ab\nc" > /dev/full /usr/bin/printf: write error: No space left on device The same is on bash 4.2.8. The second write error is d

Re: bug on [A-Z] and [a-z]

2011-05-02 Thread Greg Wooledge
On Sun, May 01, 2011 at 09:17:49PM -0500, Jonathan Nieder wrote: > Hi, > > ri...@inf.ufpr.br wrote: > > > When running "echo [A-Z]*" , it shows all files/dirs of current > > directory, not only those starting with capital letters. I tried > > different locales such as: POSIX, C, en_U