From: Mart Frauenlob on 14 Apr 2010 10:24 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 14 Apr 2010 10:44 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 14 Apr 2010 10:48 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.
|
Pages: 1 Prev: Temporary environment variable assignment Next: a better way to extract data from XHTML (XML) |