[BUG] 'find' does not support '--'
Martijn Dekker
martijn at inlv.org
Wed Dec 19 18:49:09 UTC 2018
Busybox 'find' does not support '--' to signal end of options, as POSIX
requires[*]. (This is the standard way of allowing arguments, in this
case path names, starting with a dash.)
$ ./usr/bin/find -- /dev/null -print
find: unrecognized: --
[long usage message omitted]
Thanks,
- M.
[*] References:
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/find.html
"The find utility shall conform to XBD Utility Syntax Guidelines ."
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap12.html#tag_12_02
"Guideline 10: The first -- argument that is not an option-argument
should be accepted as a delimiter indicating the end of options. Any
following arguments should be treated as operands, even if they begin
with the '-' character."
More information about the busybox
mailing list