Re:Nushell.sh ls | where size > 10mb | sort-by modified
by stingraycharles on Sunday March 12, 2023 @05:34PM
(#35126579)
Isn’t this the problem with older shells as well? Eg you have to use e.g. awk or sed to deal with more complicated text processing. My understanding that the biggest difference between powershell (and nushell) and the older bash-like shells is that they deal with structured, object-like data rather than text. How would things be any different when “things break down” vs an older shell?
Re:Nushell.sh ls | where size > 10mb | sort-by modified
by jrumbut on Sunday March 12, 2023 @09:56PM
(#35129739)
One of the nice things about bash is that it interacts very nicely with Perl and Ruby.
I wonder how these other shells work with the backticks and such in Perl/Ruby. Theoretically there is room for very cool interoperability but I wonder how it goes in practice and if any nice tools and patterns are being developed.
Re:Nushell.sh ls | where size > 10mb | sort-by modified
by phist_mcgee on Sunday March 12, 2023 @11:57PM
(#35130832)
Since this is nushell and perl and ruby are now starting to be considered 'old, is that so much of a problem?
Re:Nushell.sh ls | where size > 10mb | sort-by modified
by jrumbut on Tuesday March 14, 2023 @04:47AM
(#35148806)
It's a path to scaling. You can basically dump a shell script (I assume including nushell) into your .pl/.rb file with a little punctuation and then slowly refactor it to a language that can handle greater complexity.
Re:Nushell.sh ls | where size > 10mb | sort-by modified
by pxc on Sunday March 12, 2023 @05:27PM
(#35126514)
I suppose I'm more optimistic. From my point of view, structures pipelines and some of the goodies that come with it (like better error handling), can make a shell language into a perfectly capable scripting language. I think the big weakness for these new shells is in the small sizes of their library ecosystems. But PowerShell shows what a language of this kind can do with a sizeable ecosystem and some OS integration.
Re:Nushell.sh ls | where size > 10mb | sort-by modified
by ilyt on Sunday March 12, 2023 @06:46PM
(#35127406)
Should be doing that anyway, bash is terrible for actual programs.
Re:Nushell.sh ls | where size > 10mb | sort-by modified
by coldtea on Sunday March 12, 2023 @07:05PM
(#35127755)
As opposed to what? Regular shells which break down even quicker?
And there's no hard constraint that would require this to "break down at some point". A well designed shell could also be a "real scripting language", all-in-one.
But the horrible CP/M and POSIX legacy of shell design doesn't help with that.
I.e., there is no graceful scaling path.