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 needs to be handled specially -- more specially than it was. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/