On 11/26/12 9:07 AM, Davide Brini wrote:
>> Then maybe you have the compat31 option set (or your distro sets it for
>> you), or you may have a patched, non-vanilla version of bash (redhat is
>> well known for doing this).
>>
>
> And indeed:
>
> https://groups.google.com/forum/?fromgroups=#!topic
On Mon, 26 Nov 2012 05:40:09 -0800 (PST), chupin...@gmail.com wrote:
> > It changed between bash 3.1 and 3.2, documented in the NEWS file. There
> > is
> >
> > a "compat31" option that can be turned on to restore the 3.1 behavior.
> >
>
> As you see it works for me in 3.25
Then maybe you have
On Mon, 26 Nov 2012 15:03:35 +0100, Davide Brini wrote:
> On Mon, 26 Nov 2012 05:40:09 -0800 (PST), chupin...@gmail.com wrote:
>
> > > It changed between bash 3.1 and 3.2, documented in the NEWS file.
> > > There is
> > >
> > > a "compat31" option that can be turned on to restore the 3.1 behavi
Thank you guys for comprehensive explanation.
Regards,
Alexander Chupin
> It changed between bash 3.1 and 3.2, documented in the NEWS file. There is
>
> a "compat31" option that can be turned on to restore the 3.1 behavior.
>
As you see it works for me in 3.25
On Sat, Nov 24, 2012 at 10:29:30PM +, Lawrence Steeger wrote:
> Alex Chupin (achupin cisco.com> writes:
> > $ bash --version; s=12345;if [[ "$s" =~ '^[0-9]+$' ]]; then echo it is a
> number; else echo it is NOT a number; fi
> The single quotes are being used in the match. If you remove them,
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
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
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