ls output

Gilles Espinasse g.esp at free.fr
Fri May 13 13:27:19 UTC 2011


----- Original Message ----- 
From: "David Henderson" <dhenderson at digital-pipe.com>
To: "Ralf Friedl" <Ralf.Friedl at online.de>
Cc: <busybox at busybox.net>
Sent: Friday, May 13, 2011 3:19 PM
Subject: Re: ls output


> On 05/13/2011 09:01 AM, David Henderson wrote:
> > On 05/13/2011 08:45 AM, Ralf Friedl wrote:
> >> David Henderson wrote:
> >>> On 05/12/2011 05:11 PM, Ralf Friedl wrote:
> >>>> David Henderson wrote:
> >>>>> I'm not sure how much it would increase the size of BB, but I
> >>>>> wouldn't think much since the 'ls' command already processes
regex's.
> >>>> Well, where exactly does 'ls' already processes regex's?
> >>>>
> >>>> Ralf
> >>>
> >>> Taken directly from the 'ls --help':
> >>>
> >>> -E      PATTERN is an extended regexp
> >> I don't find an option -E in busybox ls or in coreutils ls. But grep
> >> has exactly that option:
> >> $ ls --help 2>&1 | grep -- -E
> >> $ grep --help 2>&1 | grep -- -E
> >>        -E      PATTERN is an extended regexp
> >>
> >> Ralf
> >>
> >
> > Opps, it appears as though I was looking at the grep help (I was
> > scanning through buffered output). lol  It's too early in the morning
> > - I retract my regex statement. :)
>
> Actually, now that I think about it, since 'ls' is just a busybox
> applet, doesn't that mean that the code base is shared?  So in essence,
> doesn't that mean that 'ls' has the capability to process regex's
natively?
>
> Dave

Yes maybe if that feature is enabled.
But no outside of the busybox world.

And if you suggest to add that feature to busybox ls, Denys will ask you
what upstream think about that new option.

Gilles



More information about the busybox mailing list