452
rulershell 7-x64 (lemmy.blahaj.zone)
all 27 comments
sorted by: hot top controversial new old
[-] Evilsmiley@sh.itjust.works 83 points 1 year ago

That isnt the mascot , that IS the wizard

[-] rtxn@lemmy.world 67 points 1 year ago* (last edited 1 year ago)

You expected your content to be downloaded by curl

It was me, Invoke-WebRequest!

[-] ShittyKopper@lemmy.blahaj.zone 46 points 1 year ago

the only thing i know about powershell is that the linux binary is named pwsh which i learned the hard way after writing pow and then accidentally tab completing poweroff and shutting down my pc

in fairness that might've been a sign

[-] RepulsiveDog4415@feddit.de 8 points 1 year ago

I just learned you can use powershell your default shell. Ngl i'm kinda impressed...

[-] aluminium@lemmy.world 27 points 1 year ago

Powershell is actually powerful. You can write full on WPF grafical user interfaces with it.

[-] themoonisacheese@sh.itjust.works 37 points 1 year ago

If powershell wasn't a Microsoft product I think it could easily outclass any shell currently available. The concept of command output typing is hand down one of the best features of any shell I've tried.

[-] AnyOldName3@lemmy.world 21 points 1 year ago

nushell is a thing, and basically has all the fun powershell features like a type system, but a more Unixy presentation. I've not used it, so don't know if it's actually any good, but it at least exists.

[-] jackalope@lemmy.ml 3 points 1 year ago

Can you write bash with nushell?

[-] priapus@sh.itjust.works 5 points 1 year ago* (last edited 1 year ago)

No, it is its own scripting language.

[-] jackalope@lemmy.ml 3 points 1 year ago

Is nushell comparable to fish?

[-] AnyOldName3@lemmy.world 5 points 1 year ago

Yes and no. Yes in that it's a different shell that is intended to be used instead of something like Bash, and isn't compatible with Bash scripts. However, unlike Fish and Zsh, it's also not compatible with plain POSIX sh, so you have to run plain shell scripts by calling into something else that is sh-compatible.

[-] vox@sopuli.xyz 11 points 1 year ago* (last edited 1 year ago)

How is it being a Microsoft product a bad thing? It's fully open source and available on both Linux and Windows;
also nushell

[-] Prunebutt@feddit.de 9 points 1 year ago

Microsoft has literally invented EEE (Embrace, Extend, Extinguish).

[-] z500@lemmy.world 9 points 1 year ago

They didn't embrace anything with PowerShell, it's just a Microsoft product.

[-] Prunebutt@feddit.de 8 points 1 year ago

I was just pointing out why people are suspicious of MS.

[-] twelvefloatinghands@lemmy.world 5 points 1 year ago

nushell is taking the same route I think

[-] priapus@sh.itjust.works 3 points 1 year ago

I like the typing, but I hate the syntax and verbosity of it. It feels very complex to write.

[-] Ozzy@lemmy.ml 1 points 1 year ago

I'm confused by this command output typing you're talking about, and I'm not sure if I found the correct thing. Are you talking about the Write-Host and Write-Output?

[-] FooBarrington@lemmy.world 9 points 1 year ago

I'd assume they mean that command return values can have types besides string. In classical shells, all data is stringy, so every command has to re-interpret everything. PowerShell can actually use data types.

In powershell, commands may return types different from string and other commands may accept arguments that are not strings. For example, you can pass an array between commands where in bash you just have a string with \n separated values. You may also interact with more complex objects

I once made a script for a monitoring software that takes its input as json, so I built a custom object that had all the data and then called .tojson on it and that was that.

[-] lameJake@feddit.de 2 points 1 year ago

As far as I understand it it's like stdout and stderr but with some additional ones for debuging, logging, etc..

[-] Synthead@lemmy.world 13 points 1 year ago

Reminder that you can use any CLI interpreter as your shell. IPython, Pry, PHP, or whatever you want.

[-] muzzle@lemm.ee 7 points 1 year ago* (last edited 1 year ago)

Of course you can, but why would you?

[-] Trollception@lemmy.world 2 points 1 year ago

It was my stepping stone from being an IT Support tech to a traditional Software Developer. Yes it's not as easy to work with as a traditional language or as fast but it's more flexible and often less verbose.

[-] cupcakezealot@lemmy.blahaj.zone 10 points 1 year ago

thank you! i've literally felt the same ever since powershell introduced the icon

this post was submitted on 13 Oct 2023
452 points (100.0% liked)

196

16439 readers
1819 users here now

Be sure to follow the rule before you head out.

Rule: You must post before you leave.

^other^ ^rules^

founded 1 year ago
MODERATORS