News for hackers. Stuff that matters.
Re:I'm “still afraid to use spaces in file names” years old by chrisseaton on Thursday November 11, 2021 @10:33AM (#29188967)
I mean how do you want shells to deal with file names with spaces in? Do you think we should have to quote and escape all file names all the time? If not then how do you think it should work?
Re:I'm “still afraid to use spaces in file names” years old by rcxdude on Thursday November 11, 2021 @11:54AM (#29190150)
Shells should treat data as data, and not have the default behaviour be treating it as code (i.e. you should need to do 'eval $x' or some equivilant if you acutally want the string to be treated as a shell command). This would also mean having a real list type, instead of depending on arbitrary seperators in strings. This is exactly how other languages treat it, and it is not a significant challenge for interactive use (in fact, it would substantially reduce the opportunity for suprises when running commands interactively as well).