Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
0xpgm
· 1mo ago · 0 comments
Why not let the shell do the expansion of `somedir/*` to refer to the content of the directory instead?
Comments
[–]
GrantMoyer
1mo 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.
[–]
0xpgm
OP
1mo ago
Right, I get it.
[–]
1718627440
1mo ago
Because then you don't have two parameters anymore and need a marker between source and target arguments.
[–]
0xpgm
OP
1mo ago
Makes sense.