Re: where is my

2009-12-15 Thread Allen Halsey
Hi Ken, I installed /usr/share/dict/words this way: # cd ~/Downloads # wget ftp://fr2.rpmfind.net/linux/fedora/releases/11/Everything /i386/os/Packages/words-3.0-15.fc11.noarch.rpm # rpm2cpio words-3.0-15.fc11.noarch.rpm | (cd /; cpio -idmv) # chmod 755 /usr/share/dict/ The rpm2cpio.exe

Re: 1.5, 1.7: Bash regex not recognizing word boundaries

2009-10-20 Thread Allen Halsey
On Mon, Oct 19, 2009 at 3:30 PM, Eric Blake wrote: > > Indeed - \b is a GNU extension available in glibc's regcomp(), but not > required by POSIX nor available in newlib.  Unless/until someone > contributes patches to write the same extensions to the POSIX interface, > then bash won't be able to m

1.5, 1.7: Bash regex not recognizing word boundaries

2009-10-19 Thread Allen Halsey
These should print "Matched", but they don't: $ REGEX='\bcat\b' $ [[ "dog cat bird" =~ $REGEX ]] && echo "Matched" $ REGEX='\' $ [[ "dog cat bird" =~ $REGEX ]] && echo "Matched" $ egrep works as expected: $ egrep -q '\bcat\b' <(echo "dog cat bird") && echo "Matched" Matched $ egrep -q '\' <(echo