News for hackers. Stuff that matters.
Re:Become Shell Literate by dafoex on Saturday December 12, 2020 @01:46PM (#25400445)
I totally agree that file names shouldn't have spaces because they are variables, and I (usually) name all my files with camelBackNotation names as I was taught is best practice for variable names. That said, with every command I remember running, treating the file name like a string - e.g. "file name.png" - has worked whenever I encounter spaces, no escape characters required.
Re:Become Shell Literate by CJefferson on Saturday December 12, 2020 @02:48PM (#25401005)
The problem is shell is when I want to write something like 'find . | grep namepiece | xargs rm', or something like that. I can work around this by piling everything into the find, or in some cases by liberally spreading -0s around, but neither feel very "shell-like" to me.
Re:Become Shell Literate by enriquto on Saturday December 12, 2020 @03:27PM (#25401390)
Thus it seems that a filesystem that forbade spaces in its filenames would solve your problems with the shell? Sounds good to me!