8 ms·
How does this compare to nushell? I am in the market to learn something other than bash and right now nushell seems like the best candidate.
by abnry 3y ago
How does this compare to nushell? I am in the market to learn something other than bash and right now nushell seems like the best candidate.
- hprotagonist 3y agoweird to say, but powershell should also be on your list.
- chaps 3y agoYep. It's a very clean, powerful and well thought out API. And I'm saying that coming from a place of love towards unix and its pipes. I'd almost argue it's better than the unix model. Almost. Been able to give poweshell commands in FOIA litigation and its power is on full display with one liners where it's hard for a gov agency to say no to something so simple.
- bee_rider 3y agoThat’s really interesting; how do you use powershell in that context? I’m assume it isn’t just Here’s FOIA request for the output of the command find /home/jbiden -name “*secret*doc” haha.
- chaps 3y agoIt was most notably helpful in litigation against the White House Office of Management and Budget. Was suing for one week of email metadata records (to, from, CC, bcc, time, date) in the last week of Jan 2017. They said that they had no way to complete the request. So we sent them multiple one liners that extracts the info from outlook 365, which pipes it to a csv export command. They told us that they didn't run that sort of command as a routine practice, but we found a separate lawsuit that found emails of the exact command we were asking them to run.
- galaxyLogic 3y agoCool
- wodenokoto 3y agoThat sounds like a joke from archer: White House: We can’t do that. Litigator: Can’t or won’t? White House: either!
- plugin-baby 3y agoThis deserves a thread of its own! Is there any coverage of this case?
- chaps 3y agoI need to write about it ;). We won that case just before the last election and unfortunately other things took priority at the time. But it'll happen. Just first need to write about my IL supreme Court loss...
- queuebert 3y agoI would love to read about stuff like this. I hope you'll post here when you eventually write it up.
- chaps 3y agoThis might quench your thirst in the meantime! https://mchap.io/that-time-the-city-of-seattle-accidentally-gave-me-32m-emails-for-40-dollars4997.html https://mchap.io/that-time-the-city-of-seattle-accidentally-...
- besnn00 3y agoHonestly any interactive shell + unix tools + any scripting language you feel comfortable with should cover the majority of things you may want to do on the command line.
- rbanffy 3y agoFor a lot of 8-bit computers, BASIC was the default operating system shell.
- gilcot 3y agoNot exactly BASIC per se, there was some CP/M like additions. However, you're right 'cause some of those commands are BASIC extension (e.g. RUN can be used from your programme, LIST maybe, but CATalog/DIRectory or LOAD often not.) Old good time.
- geophile 3y agoI wrote marcel. In my view, nushell and marcel are very similar. nushell has tabular output, which I haven't thought was all that useful. Marcel is python-based. The nushell guys have had to invent a lot of language. By basing marcel on python, I don't have to invent language. Any logic to be added is expressed in python. E.g, do a recursive listing of files and find those that changed in the last 3 days: ls -fr | select (f: now() - f.mtime() <= days(3)) The stuff inside the parens is a python function, applied to a File f, piped in from ls. (Marcel lets you omit "lambda".) Lots of marcel examples here: https://marceltheshell.org https://marceltheshell.org
- mito88 3y agomarshell the cell.... sorry couldn't resist. :)
- js2 3y agoThis looks interesting, but the examples don't really show off Marcel's power. The example you just gave without Marcel is: find . -type f -mtime -3 The example on this page: https://www.marceltheshell.org/list-processes https://www.marceltheshell.org/list-processes ps -u djt | map (p: p.signal(9)) That's: pkill -9 -u djt The example for summing files by extension is a bit more interesting: ls -fr | map (f: (f.suffix, 1)) | red. + | sort Vs something like: find . -type f | awk -F. '(NF>1){print "."$NF}; (NF==1){print ""}' | sort | uniq -c That said, every time I look into one of these shells, I end up sticking with bash. When it gets to the point that I need something more powerful than bash and the Unix command line environment, I'd just as soon write a stand-alone program which I can check into version control, use on remote systems that don't have one of these fancy shells installed, add proper tests, etc. This is a neat project though. I'll keep an eye on it.
- achenet 3y agoI've been using fish for a while myself, and I absolutely love it. The autocomplete is magic.