Re: Strange behaviour using negative index in arrays

2021-01-02 Thread Koichi Murase
Happy new year! 2021年1月2日(土) 20:44 felix : > ( Under 4.2.37(1)-release, I get: ``-bash: a[$i]: bad array subscript'' ) > > But with ``my'' 5.0.3(1)-release, as with new 5.1.4(1)-release, no > error... Negative array subscripts are indeed a new feature of Bash 4.3. From the changelog (http://tisw

Strange behaviour using negative index in arrays

2021-01-02 Thread felix
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -g -O2 -Wno-parentheses -Wno-format-security uname output: Linux medium 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2 (2020-04-29) x86_64 GNU/Linux Machine Type: x86_64-pc-