[Toybox] find applet arguments, quotations and wildcards
Rob Landley
rob at landley.net
Wed Feb 7 10:20:50 PST 2018
On 02/07/2018 05:36 AM, darken wrote:
> I just noticed the following find applet behavior with regards to wildcards.
> I don't think it's a bug as it shows in all find applets, but I'm
> puzzled by what is happening.
>
> It seems that when using wildcards and the search results contain a
> wildcard match that contains a dash, then find uses the result as
> argument option? Why?
Because the shell expands the wildcard (into multiple arguments if
necessary) before the command runs. The quotes tell the shell how to
treat the string, they're not passed on to the command.
Rob
More information about the Toybox
mailing list