Re:Things you (probably) didn't know about xargs
by underwater on Sunday June 26, 2011 @09:57PM
(#2699772)
On a slightly related note, am I the only one who finds the argument syntax for `find` to be inconsistent? Shouldn't it be `find --name "*.bar"` or even `find --name=foo.bar`?
[ Parent
| on HN ]
Re:Things you (probably) didn't know about xargs
by kaens on Sunday June 26, 2011 @10:40PM
(#2699887)
The "single - for single-letter -- for fullname" option style was popularized by gnu getopt, by far the most popular style. Find has been around for a while and probably doesn't update to that style because of the huge amount of stuff already using find.
It's inconsistent in comparison to most utilities, for sure.
It's consistent internally, and POSIX-compliant, at least. (iirc)
Re:Things you (probably) didn't know about xargs
by zaphar on Sunday June 26, 2011 @10:33PM
(#2699870)
finds arguments might very well be inconsistent but the --name argument as you show it does exist. -iname just means find should treat the name as case insensitive. --name on the other hand is case sensitive so --name=Foo.bar won't match foo.bar.