4 ms·
I think the author realized something important. There's the bash as a CLI users and bash as a scripting language users. I'm firmly in camp one and I think it's
by lawl 6y ago
I think the author realized something important. There's the bash as a CLI users and bash as a scripting language users. I'm firmly in camp one and I think it's an important difference to realize.
I don't want my CLI to be a REPL for a scripting language. It's something I really disliked about PowerShell when I tried it. It just felt like a dotnet scripting language and not like a CLI.
If Oil provides a scripting interface with structured types etc. I'm all for it. I just don't want to have to deal with it when using the shell interactively. I love it when writing scripts and programs, but not for interactive shell use.
- giancarlostoro 6y agoReason I use fish is purely for OOTB shell defaults that are nice. I wouldnt script for Fish though its not a standard shell on most OS.
- quantified 6y agoWhat if the language is “shell”-ish? Reading the piece, the idea of shell as a REPL seemed attractive.
- lawl 6y agoFor me: No. I feel like powershell tried exactly that and i don't like it. That may be in the end just depend on execution though. But powershell e.g. prints errors that look like stacktraces (it's been a few years i don't remember exactly) with type information. And while that may be desirable to some, when using bash i'm using a UI as a user and not programming and i don't want to read a stacktrace. I want an error message in english telling me what's wrong.
- little_panda 6y agoThere is a try/catch/finally mechanism in powershell: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_try_catch_finally?view=powershell-7.1 https://docs.microsoft.com/en-us/powershell/module/microsoft... However, it is quirky to set up and I don't remember the details now, it doesn't handle the errors out of the box for sure. I would still prefer powershell over bash (or god forbid, cmd) any day.
- quantified 6y agoSure. Is that how all REPLs behave? I have a feeling there is a lot of latitude for tuning the ergonomics.