From: Mart Frauenlob on
On 14.04.2010 15:56, Brendan wrote:

> @pk: Thanks. Changing to (aqua|terra) was the fix. I am using GNU
> bash, version 3.2.25(1)-release (x86_64-redhat-linux-gnu). Quotes do
> not seem to upset the =~ but I will remove them for future posterity.

there's the 'compat31' shell option (shopt) in bash 3.2+.
If turned on, bash behaves like 3.1 and lower (regarding the regex
operator).
From: Brendan on
On Apr 14, 11:24 am, Mart Frauenlob <mart.frauen...(a)chello.at> wrote:
> On 14.04.2010 15:56, Brendan wrote:
>
> > @pk: Thanks. Changing to (aqua|terra) was the fix. I am using GNU
> > bash, version 3.2.25(1)-release (x86_64-redhat-linux-gnu). Quotes do
> > not seem to upset the =~ but I will remove them for future posterity.
>
> there's the 'compat31' shell option (shopt) in bash 3.2+.
> If turned on, bash behaves like 3.1 and lower (regarding the regex
> operator).
Thanks for that tidbit. That must be the default for CentOS 5.4. I
might be afraid to change it.
From: Mart Frauenlob on
On 14.04.2010 16:44, Brendan wrote:
> On Apr 14, 11:24 am, Mart Frauenlob <mart.frauen...(a)chello.at> wrote:
>> On 14.04.2010 15:56, Brendan wrote:
>>
>>> @pk: Thanks. Changing to (aqua|terra) was the fix. I am using GNU
>>> bash, version 3.2.25(1)-release (x86_64-redhat-linux-gnu). Quotes do
>>> not seem to upset the =~ but I will remove them for future posterity.
>>
>> there's the 'compat31' shell option (shopt) in bash 3.2+.
>> If turned on, bash behaves like 3.1 and lower (regarding the regex
>> operator).
> Thanks for that tidbit. That must be the default for CentOS 5.4. I
> might be afraid to change it.

setting a shopt option only affects the current (sub)shell.