Cygwin 1.7 string pattern matching problem with case sensitivity

jean-benoit.ouellet@bell.ca jean-benoit.ouellet@bell.ca
Thu Mar 17 13:13:00 GMT 2011


Hi!
I just upgraded Cygwin from 1.5.21-2 to 1.7.8-1 and I'm getting problems with case sensitivity.
Let's assume that 'file.csv' contains these 2 lines:
Hello, 123
hello, 456 

The following commands will output both lines instead of the desired first line only:
awk -F, '$1 ~ /^[A-Z]/ {print $0}' file.csv
grep "^[A-Z]/" file.csv

There must be something wrong in my setup but I'm running out of ideas to find the problem rootcause. 

Jean-Benoit Ouellet


-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 347311 bytes
Desc: cygcheck.out
URL: <http://cygwin.com/pipermail/cygwin/attachments/20110317/36defb5c/attachment.obj>
-------------- next part --------------
--
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


More information about the Cygwin mailing list