summaryrefslogtreecommitdiffstats
path: root/color.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2016-10-02 15:09:18 -0400
committerTavian Barnes <tavianator@tavianator.com>2016-10-02 15:09:18 -0400
commit34fa233c66d6595e168fe114655857f14accfa3a (patch)
tree3fbf66accecb71a476b21b099a9aef1e02fe341f /color.c
parent46e32a2c62f6500ff0b278f93a7286660ee0a008 (diff)
downloadbfs-34fa233c66d6595e168fe114655857f14accfa3a.tar.xz
parse: Ignore -- on the command line.
find uses -- to indicate the end of the flags. That is, $ find -L -- -type f is allowed, but $ find -- -L -type f results in an error about an unknown predicate `-L`. This behaviour doesn't seem particularly useful -- in particular, unlike most other tools, it doesn't help you if you want to specify a filename beginning with a -. So to ensure bfs is compatible with all GNU find command lines, we just ignore -- whenever it appears.
Diffstat (limited to 'color.c')
0 files changed, 0 insertions, 0 deletions