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

Just put them in quotes. PowerShell is infinitely better than bash/zsh/... at handling spaces. You're spreading nonsense.


> Just use quotes bro

Man, it's never that simple. How about generating Powershell scripts with quotes? Sometimes you are dealing with escape characters \", sometimes you aren't. Why bother with all that? Hell, versions of software and compilers change such behaviors either on purpose or by accident all the time. It just gets messy dude. C:\NEVER_~1\AGAIN_~1.NOP

Perhaps i'm a dinosaur still scarred by the golden olden days, but, there is no convincing me that whitespace in filenames or URLs is ever a good idea.


I don't know what to tell you. You gave two examples that aren't actually issues. But if there's no convincing you, I won't bother. Have a nice day.


> You gave two examples that aren't actually issues.

Man, i've had config files break because i saved them in UTF-8 instead of ANSI. I hope to god you never have to experience the horror... You also have a nice day.


> Man, i've had config files break because i saved them in UTF-8 instead of ANSI.

Isn't this because random Windows tools add garbage bytes to the start of the file (a "byte order marker") and then don't tell you they did this?

It's not the encoding that's the problem, it's the garbage bytes.

P.S. I do know of exactly one program that only accepts UTF-16 for its config file, and won't accept UTF-8 or ANSI.


This is getting less and less relevant.




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

Search: