Y
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
GrantMoyer
61 days ago
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.
link
0xpgm
60 days ago
Right, I get it.
link
1718627440
61 days ago
Because then you don't have two parameters anymore and need a marker between source and target arguments.
link
0xpgm
61 days ago
Makes sense.
link