Re: weird behaviour of ((count++)) when using , , to change to lower case

2010-08-02 Thread Chet Ramey
On 8/1/10 7:05 PM, Dennis Williamson wrote: If I do the echo line twice, I get a segfault in both Bash 4.0.33(1)-release and 4.1.0(1)-release. Thanks. This will be fixed in bash-4.2. And you're right about being evaluated twice. This was already changed after bash-4.1 was released; the

weird behaviour of ((count++)) when using , , to change to lower case

2010-08-01 Thread Andrew Benton
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-unknown-linux-gnu' -DCONF_VENDOR='unknown'

Re: weird behaviour of ((count++)) when using , , to change to lower case

2010-08-01 Thread Bernd Eggink
Am 01.08.2010 13:06, schrieb Andrew Benton: Also good. Now try converting it to lower case with ,, andy:~$ count=0 andy:~$ echo ${days[${count}],,}, ${days[$((count++))],,}, ${days[$((count++))],,} monday, tuesday, thursday What happened to wednesday? I'd rather expect this to print

Re: weird behaviour of ((count++)) when using , , to change to lower case

2010-08-01 Thread Dennis Williamson
If I do the echo line twice, I get a segfault in both Bash 4.0.33(1)-release and 4.1.0(1)-release. And you're right about being evaluated twice. On Sun, Aug 1, 2010 at 3:59 PM, Bernd Eggink mono...@sudrala.de wrote: Am 01.08.2010 13:06, schrieb Andrew Benton: Also good. Now try converting it