So the question is how much Locale support is BB supposed to have? Isn't that one of the 'light'- nesses of BB? In traditional grep, pre-locale, that [a-Z] pattern would be an error, or at least an empty set.
If you ask me (and nobody does), what BB did was right. -- Jim -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of walter harms Sent: Thursday, February 19, 2009 9:46 AM Cc: [email protected] Subject: Re: grep: bug or feature ? The problem is that we try to emulate desktop grep behavior. So the questions remains: is this intended ? re, wh Andreas Wehrmann schrieb: > Actually, the complain is correct because big letters come before small > ones (according to ASCII), therefore > >> ./busybox grep "[A-z]" /etc/hosts > > would be correct. > However, I cannot confirm the loop working, it cancels with the same > error here... > > Regards, > Andreas Wehrmann > > > walter harms wrote: >> Hi list, >> i was porting a script to an embedded box with bb and found the >> following effect: >> >> ./busybox grep "[a-Z]" /etc/hosts >> grep: bad regex '[a-Z]': Invalid range end >> >> while >> grep "[a-Z]" /etc/hosts >> >> works with no problem. >> >> bug or feature ? >> >> >> re, >> wh >> _______________________________________________ >> busybox mailing list >> [email protected] >> http://lists.busybox.net/mailman/listinfo/busybox >> _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
