Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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.


Thus it seems that a filesystem that forbade spaces in its filenames would solve your problems with the shell? Sounds good to me!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: