[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: RE: grep: bug or feature ?
From: "Cathey, Jim" <jcathey () ciena ! com>
Date: 2009-02-19 18:00:34
Message-ID: F4AC465B29B61A4FA792A4E6FEA8A2025F0631 () wamxm01 ! ciena ! com
[Download RAW message or body]
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: busybox-bounces@busybox.net [mailto:busybox-bounces@busybox.net]
On Behalf Of walter harms
Sent: Thursday, February 19, 2009 9:46 AM
Cc: busybox@busybox.net
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
>> busybox@busybox.net
>> http://lists.busybox.net/mailman/listinfo/busybox
>>
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic