4 ms·
Great! Now if we could just switch the path separator over to /
by 10eleven 7y ago
Great! Now if we could just switch the path separator over to /
- BasicObject 7y agoLet's make that a setting and call it a day. Seems easy enough?
- xenadu02 7y agoA bunch of early Microsoft folks were also Unix users and preferred using / as a directory separator but IBM insisted on using / for command-line switches, forcing use of \ as the separator. This was a late-breaking change and for a few versions of DOS you could set SWITCHAR=- in CONFIG.SYS to get the Unix behavior. When set "dir /s C:\whatever" becomes "dir -s c:/whatever". You can literally blame IBM for this divergence. Without them pitching a fit about it DOS/Windows would have had the same switch syntax and path separators as Unix.
- nailer 7y agoYou can type / and it works in Powershell. I've been using Unix for 20 years, switch to pwsh 2 years ago, never typed backslash ever.
- 10eleven 7y agoWHAT
- 10eleven 7y agoThis changes everything
- eBombzor 7y agoPowershell is considerably slower than cmd. Does that not bother you?
- majkinetor 7y agoIt starts under 1s without modules. That is enough fast and still infinitely distant feature-wise of cmd.exe. You can make it go over 1m+ if you have a lot of modules to load, particularly with method of writing modules where you put functions into separate files (and no SSD) and/or some specific cmdlets in the profile. It can even be worst then that in particular environment - for instance within VSCode some of my scripts can take several minutes loading (while being otherwise instant). In other words, you can balance your environment for speed vs features. I believe Pwsh will get considerably faster in the future given that optimizing it will pay out on nano server which currently boots faster then PowerShell is loaded in it afterwards (which rly sux).
- nailer 7y agoIt takes 1600ms to open a tab with my full large profile. Yes that's annoying. bash requires scraping everything and is inherently brittle as a result, which has always bothered me much more.
- rplnt 7y agoDidn't that work since...I don't know, at least 90s?