These should print "Matched", but they don't: $ REGEX='\bcat\b' $ [[ "dog cat bird" =~ $REGEX ]] && echo "Matched" $ REGEX='\<cat\>' $ [[ "dog cat bird" =~ $REGEX ]] && echo "Matched" $
egrep works as expected: $ egrep -q '\bcat\b' <(echo "dog cat bird") && echo "Matched" Matched $ egrep -q '\<cat\>' <(echo "dog cat bird") && echo "Matched" Matched $ Behavior is same on 1.5 and 1.7. Allen -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple