4 ms·
> the design of Unix shell is bonkers Compared to what?
by throwaway19972 2y ago
> the design of Unix shell is bonkers
Compared to what?
- mdavid626 2y agoPowershell?
- oguz-ismail 2y agoVerbosity is a huge problem there
- consteval 2y agoModern programming language designers have a bad relationship with verbosity. I don't know why they do this. It's a lang for an interactive shell, typing literally translates to developer speed. I understand the want for clarity and maybe that's nice in large scripts, but the main goal is to be a shell. So, optimize for that. Also, you probably shouldn't be using powershell for large scripts anyway. The only recent lang I've seen that has a handle on this is Rust. You can tell they put a lot of thought into having keywords be as short as possible while still being descriptive.
- ggm 2y agoFoundTheCamelCaseConvert. My God next you will say getopt() --longform is the bestest
- throw16180339 2y agoIt's been years since I used Powershell, but IIRC there are shortcuts for the common commands, e.g. cat, ls, mv, rm, and such DTRT.
- Diti 2y agoThose aliases are, I believe, only defined on Windows PowerShell (the closed-source version 5; not PowerShell 7). I wish those default aliases you mentioned weren’t a thing. Especially `curl` (people should use `iwr` instead), which is an alias of `Invoke-WebRequest`, because it makes the `curl.exe` shipped with Windows nearly undiscoverable.
- poincaredisk 2y agoPowerShell designer could learn from decades of programming language progress and especially shell usage. They could improve many aspects indeed. This doesn't mean that the original design is "bonkers", only that it's not perfect.