Hi Andy,
One day grep matched a number of things that I didn't expect it to
match
Yes, I think we've all had that struggle with a non-C locale. :-) The
other reason I still use ~/bin/C quite a bit is grep used to be much
slower in en_GB.utf8 than C. I think GNU have narrowed the gap, but it
can still make a difference, plus there are times when you know you want
to specify a C-locale regexp, as you say.
I also use it to stop localisation, e.g. translating error messages and
cluttering up trace output.
$ strace -c ls /foo |& sed '1,2b; $b; d'
ls: cannot access /foo: No such file or directory
% time seconds usecs/call calls errors syscall
100.00 0.000000 147 27 total
$
$ C strace -c ls /foo |& sed '1,2b; $b; d'
ls: cannot access /foo: No such file or directory
% time seconds usecs/call calls errors syscall
100.00 0.000000 111 14 total
$
Cheers, Ralph.
_______________________________________________
Nmh-workers mailing list
Nmh-workers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/nmh-workers