[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [PATCH] ls: fix support for long options when FEATURE_LS_COLOR is deselected
From:       Xabier Oneca  --  xOneca <xoneca () gmail ! com>
Date:       2017-05-26 15:20:33
Message-ID: CACkgH72SiwGxse60jj1C+ZpQz5XJF-_yfLqqTqd3JfaYRjryoQ () mail ! gmail ! com
[Download RAW message or body]

Hello,

>  Xabier Oneca:
>> Shouldn't "--color" be guarded by IF_FEATURE_LS_COLOR, then?
>
>  As I understand it, it's a choice: if a feature is not selected
> at build time, guarding the option declaration in applet_long_options
> makes busybox fail when the option is given at run-time, whereas not
> guarding it (i.e. always declaring the option) makes busybox silently
> ignore it. Both approaches are justifiable.
>
>  Since neither --full-time nor --group-directories-first appeared
> to be guarded (by FEATURE_LS_TIMESTAMPS and FEATURE_LS_SORTFILES
> respectively), I chose to stay as close as possible to the existing
> code and not guard --color either.

Got it! You are right.
_______________________________________________
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