News for hackers. Stuff that matters.
Re:Bash functions are better than I thought by pajko on Sunday October 31, 2021 @05:13PM (#29060500)
You have to add quotes in bash if the filename contains a space. Variables should also be quoted for the same reason, because their values might contain spaces. "${var}"
Re:Bash functions are better than I thought by dahfizz on Sunday October 31, 2021 @06:14PM (#29060973)
Only in a script. On the command line, tab expansion will escape any special characters in a filename.
Re:Bash functions are better than I thought by fragmede on Sunday October 31, 2021 @05:56PM (#29060840)
don't forget to handle filenames with newlines in them as well!