HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by dmckeon | Hacker News Reader
Parent
Full thread
dmckeon
·
No need for "$@" there? (Not many file names with spaces?)
View on HN
oefrha
·
Also, just use
for file; do blah done
which is equivalent to
for file in "$@"; do blah done
shorter and no bug.
ninkendo
·
And they’ll want to quote the interior part of "$(basename "${file}")" too.
Reply on news.ycombinator.com