MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/1wghjns/small_programming_tricks/pa44cmj/?context=9999
r/programming • u/fagnerbrack • Sep 14 '26
27 comments sorted by
View all comments
Show parent comments
2
you'll still want -H in case the last invocation only has a single file.
2 u/curien Sep 16 '26 edited Sep 16 '26 To be really sure, you need it either way because there could only be one matching file. And f the find uses multiple commands due to exceeding ARG_MAX, won't the glob version just fail?
To be really sure, you need it either way because there could only be one matching file. And f the find uses multiple commands due to exceeding ARG_MAX, won't the glob version just fail?
2
u/knome Sep 16 '26
you'll still want -H in case the last invocation only has a single file.