[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: nushell.jpg (32 KB, 800x450)
32 KB
32 KB JPG
What's /g/'s opinion on Nushell?
>>
>>106524638
>not POSIX
garbage
>>
it's not posix so it better offer some wild new paradigm to be worth it, what is it doing?
In-band formatted stdout?
Is that it?
>>
>>106524638
when it works and the system commands are wrapped, it's pretty good. Much better than manually chasing the right fields with awk.
I have a script that regularly removes the biggest files from my pacman cache besides old kernels and it's much simpler and more extensible than how I'd do the same thing with bash.
Iteration is also much better than in posix shells. This is what initially got me interested
>>
>>106524735
instead of being stringly typed, many commands return tables or at least records. The goal is to eliminate most use of awk and instead just reference the row name.
You can also i.e. map over one row and keep the others intact, which already becomes harder in awk, so if you are stuck with learning a new language (awk vs nu), nu allows you to do it more cleanly
also has `map` function as a builtin, something that you obviously want in a shell that has piping. Much better than
myFunction | while real x; do 
....
>>
>>106524638
Most retarted garbage I have ever seen. System shells are not some sort of dbms and command prompts should not be a declarative sql-like language.

This retarted functional trend needs to stop.
>>
>>106524638
I'll stick to fish, thanks
>>
>>106524835
yeah because one extra pipe with awk is so much better
>>
If powerful transformations are desired, wouldn't powershell be a better fit? It has better support and the ability to use dotnet APIs.
>>
>>106525380
powershell is gay
>>
It's solid. http client is really good on it, I use it for API testing all the time.
working with JSON in a table format is also very good in interactive mode.

That being said, you still be using bash 99% for a job for a long time yet, so there is that.
>>
>>106524638
been testing it for a few weeks, I haven't written any scripts yet but I've still been enjoying my time with it.

One of these days I get around to digging into the documentation and exploring more features
- t. chronic cmd.exe user
>>
>>106525380
Both correct and ultimate troll post
>>
>>106524638
At some point, just use GUIs instead of pretending you like the cli.
I bet it's written in rust or uses something gay like electron.
Just checked github. Yep, it's rust.
>>
Why does all rustoid software have this same exact look and feel and misfeatures
Another example is ripgrep, which by default ignores binary and hidden files and respects your .gitignore, which is on the surface a convenient feature but actually makes no sense
I think it's because like >>106525816 said they actually prefer GUI to CLI and just use CLI for aesthetics
>>
>>106525816
>>106525996
do you two use vim or emacs?
>>
>powershell sucks, let's copy it, with rust
???
>>
>>106524695
>>106524735
>there are still people out there who pretend to care about POSIX
Grim.

>>106525816
I fucking hate using the mouse.
>>
>>106526030
and it's beautiful
>>
>>106525380
You aren't wrong. I'd say powershell is more the earlier experiment in this kind of shell, and while it definitely does see use most people sort of regard it as something that they wish they didn't need to learn when the need arises.
>>106524638
Bash is fine when bash is fine. Drop into python once you start needing to do more substantial data manipulation. Drop into C++ when you feel like you just haven't been fucked enough this week. I've never had a problem with this approach.
>>
>>106526675
Does it have every .net lib at its disposal?
>>
>>106524638
in bash this is just ls -lS by the way
>>
Could be good. Haven't gotten into it really. If it's less retarded to use, I could see it being a replacement for stuff like jq at least.
>>
>PowerShell Rewritten In Rust
>No .NET library or any library for that matter
>Not POSIX compliant
>Flies in the face of UNIX text-based format philosophy
>Output tried way too hard to be appealing, like a web designer's attempt at a console interface
I don't understand who this is supposed to be for. People who want an object-oriented cross-platform shell already have PowerShell, which does everything Nushell does, but better. People who care about UNIX philosophy would call object-oriented an anti-feature and have better native shells.
I guess it's a fad for rust developers to fit in with other rust developers, but that has no appeal for me.
>>
>>106525380
You can't build powershell from source. It's cmdlets are slow and there is a wide gap between Windows and Linux and the differences between 5.1 and 7.5.
You'll find weird problems like Out-File -Encoding UTF8 adding a bom or you'll somehow get a variable to be "optimized" and thus break your whole session or learn the exciting trivial differences between psobject pscustomobject or some other bullshit .NET type.
Probably the only good thing about powershell is P/Invoke via Add-Type and some Cshart vomit.

If you deal with windows all day and have to have a similar experience, sure. But really powershell fucking sucks honestly.
>>
>>106526762
>powershell is more the earlier experiment
powershell is just a dotnet knockoff of the Symbolics Genera Listener.
>>
abandonware, but had nice ideas
>>
>>106525996
>ripgrep
mkfifo .gitignore

breaks ripgrep
it's funny
>>
>>106524638
I use whatever the default shell on my operating system is.
>>
>>106529164
Using Command Prompt is just masochism.
>>
>>106529164
based
>>
>>106524638
Gay name. Reminds me of nu males.
>>
>>106524638
I like fish but a UNIX PowerShell clone is something I’m rooting for from a LONG ways away
>>
File: IMG_5877.png (12 KB, 321x119)
12 KB
12 KB PNG
>>106529257
You are uncultured
>>
>>106526762
PowerShell is intimidating/unpleasant to learn but once you get it you love it.
>>
File: IMG_1472.jpg (147 KB, 1227x448)
147 KB
147 KB JPG
>>106526876
Oh look it’s another episode of “let me deride Microsoft products with false facts because I’m blindly antagonistic to Microsoft without knowing anything”
https://github.com/PowerShell/PowerShell



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.