4 ms·
Using PowerShell over SSH, Twenty Years Later
- somat 3mo agoThe way microsoft just shipped openssh is one of the saner things they have done. I am still vaguely shocked they managed to resist the temptation to MSify it.
- moqmar 3mo agoFun fact: They also ship curl.exe, which is different from curl in PowerShell, as the latter is an alias to Invoke-WebRequest. That's one of the insanest decisions they could make during one of the sanest ones.
- rackp 3mo ago[flagged]
- pjmlp 3mo agoUnfortunately the recent decision to adopt coreutils is similarly bad. Lots of conflicting commands between UNIX, Powershell and classical cmd. Thankfully it is still optional, not something shipping in the box.
- 7bit 3mo agoIt is bad because some commands that are in coreutils are conflicting with cmd commands or Windows binaries? The only thing bad is that take. It's an optional package. It doesn't overwrite any cmd commands or Windows binaries be default. So the user can decide what to install and what to use. It gives full flexibility. If you say that's a bad choice, I think you're more commenting on your inability to work with these tools, than the tools itself.
- pjmlp 3mo agoIt has conflicts all over the place, and requires being skilled across UNIX, Powershell and cmd, to fine tune the PATH and Windows Terminal sessions in order to get the right executables, depending on what one is doing. As for my skills, I have been coding since 1986, and even though Windows is my main platform, I have used more UNIX flavours in all those years than most HN commmenters.
- sn0n 3mo agoThe most mobile friendly site ever,… said no one.
- adithyassekhar 3mo agoUse reader view on your browser of choice.
- efilife 3mo agoI'll pass
- influx 3mo ago[flagged]
- adithyassekhar 3mo agoI’m glad the default ssh shell is cmd. I know it like the back of my hand. I am much better at remembering commands and flags (rd, -h) than phrases that feels like regular conversation (Remove-Item?). Maybe I’m old, I like to keep “software talk” for software and “people talk” for people.
- bitwize 3mo agoI hate to break it to ya, but there's been kind of a change in the way software gets built especially in the past year or so...
- adithyassekhar 3mo agoThat is true. Though i still use some kind of pseudo code to talk to claude, its just easier for me to explain a function that way than describing it.
- wtallis 3mo agoPowerShell has always struck me as being fine for scripting (especially since the OS ships with an editor with autocomplete), but absolutely insane for everyday interactive use, especially given how many places Microsoft applied their usual tactic of making their clone of an existing thing arbitrarily different. The design was clearly heavily informed by Unix shells, but it's like they were operating under a mandate to apply the principle of maximum surprise. Stuff like the default tab completion behavior very obviously interacts badly with the extreme verbosity.
- indrora 3mo agoThe most useful thing I did when I started working with powershell as my daily shell was to _remove half the default aliases_ once I broke my muscle-memory by trying to treat it as a historic shell, it became far more usable. Yes, get-childitem is a little weird to remember, but once you realize what it's doing isn't what `ls` does, you get a far better grasp on the environment. Write some cmdlets. You'll discover how useful having a sane, object-oriented shell is.