[Toybox] [BUG] ls applet ignores options if CONFIG_LS_COLOR is not set

Rob Landley rob at landley.net
Sun Dec 4 20:29:59 PST 2016


On 12/04/2016 08:36 PM, darken wrote:
> If `CONFIG_LS_COLOR` is not set the `ls` applet doesn't take options and
> either ignores them or says `ls: Unknown option...`.
> 
> Some testoutput:
> https://github.com/landley/toybox/issues/57
> 
> Seems to be caused by commit:
> https://github.com/landley/toybox/commit/48c75324f758e77ca3ba64072a48a7407e765570
> Reverting it fixes this.

Huh.

In generated.flags.h:
#define OPTSTR_ls
"(^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^As^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A^A"

Yeah, that's not right. Digging into it.

Thanks for the heads up,

Rob


More information about the Toybox mailing list