Hacker News new | ask | show | jobs
by 0xpgm 61 days ago
Why not let the shell do the expansion of `somedir/*` to refer to the content of the directory instead?
2 comments

Depending on the shell, `somedir/*` excludes files whose names start with "." and may expand to a literal "*" if there are no file names to expand to. Basically, globbing has more edge cases to deal with.
Right, I get it.
Because then you don't have two parameters anymore and need a marker between source and target arguments.
Makes sense.