Hacker News new | ask | show | jobs
by analog31 1256 days ago
I assumed so, but then I got curious what would happen in a DOS window.
1 comments

Thankfully it works in Powershell on Windows. I lost any muscle memory for `dir` a long long time ago.
Until you hit something like "Get-ChildItem : A parameter cannot be found that matches parameter name 'lh'" and are jarringly reminded that this is not your old friend `ls` after all.
This is why, if I use a shorthand in PowerShell at all, I avoid using "dir", "ls", and the like. "gci" is at least not like any common Unix/BSD/PC-DOS/Windows/OS/2 command.