regex in bashexpression doesn't work

2012-06-25 Thread Niels Carl W. Hansen
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-redhat-linux-gnu' -DCONF_VENDOR='redhat'

Re: regex in bashexpression doesn't work

2012-06-25 Thread Clark WANG
On Mon, Jun 25, 2012 at 3:18 PM, Niels Carl W. Hansen re...@aauindy.cscaa.dk wrote: Description: [[ 'foobar' =~ 'o.a' ]] echo FOUND should print FOUND but it doesn't. This have worked in previeous versions of bash. The bash used comes with CentOS 6.2 See

Re: regex in bashexpression doesn't work

2012-06-25 Thread Roman Rakus
On 06/25/2012 09:18 AM, Niels Carl W. Hansen wrote: Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-redhat-linux-gnu'