problem with extended regular expression in bash 4.1

2012-11-24 Thread Alex Chupin (achupin)
Dear All, Can someone shed light on the difference in behaviour of bash 4.1. and 3.25? I am out of ideas. Regards, Alexander Chupin $ bash --version; s=12345;if [[ "$s" =~ '^[0-9]+$' ]]; then echo it is a number; else echo it is NOT a number; fi GNU bash, version 4.1.2(1)-release (x86_64-redh

Re: problem with extended regular expression in bash 4.1

2012-11-24 Thread Davide Brini
On Sat, 24 Nov 2012 21:08:16 +, "Alex Chupin (achupin)" wrote: > Dear All, > > Can someone shed light on the difference in behaviour of bash 4.1. and > 3.25? I am out of ideas. > > Regards, > Alexander Chupin > > $ bash --version; s=12345;if [[ "$s" =~ '^[0-9]+$' ]]; then echo it is a > n

Re: problem with extended regular expression in bash 4.1

2012-11-24 Thread Lawrence Steeger
Alex Chupin (achupin cisco.com> writes: > > Dear All, > > Can someone shed light on the difference in behaviour of bash 4.1. and 3.25? I am out of ideas. > > Regards, > Alexander Chupin > > $ bash --version; s=12345;if [[ "$s" =~ '^[0-9]+$' ]]; then echo it is a number; else echo it is NOT a

Any chance of multi-dimensional arrays?

2012-11-24 Thread Rene Herman
Good day. I know that bash arrays are 1 dimensional -- but are there any plans for providing multi-dimensional arrays? I'm currently writing a larger bash script to manage my (ogg vorbis) music collection, including maintaining tags. Vorbis files can and (mine) often will contain repeated ta