Re:Shell Style Guide
by saagarjha on Tuesday May 15, 2018 @01:12PM
(#17075570)
> Filenames with spaces (lol) do not happen unless you do it yourself.
This is a cop out. File names can totally contain spaces, and the difference between the Bash and Python solution is that one will continue to work when a file with spaces inevitably shows up and one will fail, possibly silently.
Re:Shell Style Guide
by Nimitz14 on Tuesday May 15, 2018 @01:34PM
(#17075809)
What do you do that causes filenames to appear with spaces? And why do you not fix the cause instead of forcing yourself to deal with the possibility of a filename with a space in every possible situation?
This is a cop out. File names can totally contain spaces, and the difference between the Bash and Python solution is that one will continue to work when a file with spaces inevitably shows up and one will fail, possibly silently.