3 ms·
To me, the main advantage of Powershell is filename handling. I know that if I do everything just right, then my scripts will handle filenames with spaces/newl
by CJefferson 10y ago
To me, the main advantage of Powershell is filename handling.
I know that if I do everything just right, then my scripts will handle filenames with spaces/newlines/other crazy characters, but I always mess up somehow. Nowadays if I ever want a script I'll distribute to people who might have spaces in directories, I write it in python even if it would be a 4 line bash script, just to avoid the issue.
- dijit 10y agoI've never really had a problem with spaces in path names. You should be quoting variables when they're used though, there is a shell style guide put out by google that deals with this stuff. https://google.github.io/styleguide/shell.xml?showone=Quoting#Quoting https://google.github.io/styleguide/shell.xml?showone=Quotin...