On Thu, May 5, 2011 at 3:47 PM, Chet Ramey wrote:
> On 5/4/11 11:23 AM, Shawn Bohrer 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_OSTYP
On 5/5/11 8:26 AM, Greg Wooledge wrote:
> imadev:~$ bash-4.1.7
> imadev:~$ re=$'o\001world$' string=$'hello\001world'; [[ $string =~ $re ]] &&
> echo match
> imadev:~$
>
> It works fine with Ctrl-B for whatever reason:
That's because C-A is the internal `backslash' quoting character and ne
On 5/4/11 11:23 AM, Shawn Bohrer 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'
>
On Wed, May 04, 2011 at 10:23:20AM -0500, Shawn Bohrer wrote:
> -bash-4.1$ [[ "helloworld" =~ oworld$ ]] && echo match
> -bash-4.1$
Confirmed here (HP-UX 10.20), even using the approved "stuff the RE into
a variable" workaround that fixes most =~ problems:
imadev:~$ bash-4.1.7
imadev:~$ re
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' -DLOCALEDIR='/usr/share/locale'