[Toybox] [PATCH] lsattr/chattr: add missing flags.

Rob Landley rob at landley.net
Tue Jan 28 19:59:59 PST 2020


On 1/28/20 10:23 AM, enh wrote:
> no, i meant the -v and -p stuff... isn't there some way to have args.c
> handle the POSIX-style arguments but leave the unrecognized stuff for
> the command itself to parse (from the e2attrs[] list)?

Still dunno what you mean, but if you prepend ? and it passes through unknown
arguments but keeps parsing. (And yes I made that work for echo -nex which has
to _retroactively_ not recognize -n and -e when it hits the -x. :)

Prepend ^ and it stops at the first non-option argument for xargs etc.

Rob



More information about the Toybox mailing list