News for hackers. Stuff that matters.
Re:Pure Bash Bible by hnlmorg on Thursday September 19, 2019 @06:19AM (#21014900)
If you pardon the shameless self promotion; I'm working on something just like that:

https://github.com/lmorg/murex

It currently has:

* Proper error handling (eg try and catch blocks)

* unit testing and debugging frameworks to help with development and maintainability

* data-type aware, including complex types like how CSV, JSON and YAML are all handled as memory structures and thus the same tools can query any structured data format without understanding it's contents

* while still ostensibly working the same way as a traditional POSIX shell

There's also some work on improving the REPL experience too where I've included:

* automatic man page parsing for flags

* a "tool tip text" like hint line which tells you where commands reside on the fs, what it does, etc. Which is handy if you're trying to debug an existing commend.

* if you paste multiline text into the console you get offered a chance to preview the text before executing it (handy if, like me, you're pretty useless at copy/pasting content reliably)

* a package management system so you know exactly which functions and imported scripts are loaded from which sources (no more "where did that autocomplete suggestion / alias / etc get loaded from?"

There's a few other features like support for events and such like, but they're not yet documented.

The shell is currently beta but I've been using it as my daily driver for about 18 months now. There are still quite a few bugs, plenty of places where code needs to be rewritten for performance and lots of stuff isn't yet documented (though the documentation is pretty good already considering it's only me working on it). So don't expect a finished product. However I do think I'm at the stage where I'm ready for more users to have a play and I welcome PRs, issues raised, general comments and feedback, etc.

# end of shameless self promotion :D

Re:Pure Bash Bible by Crestwave on Friday September 20, 2019 @11:15PM (#21033257)
Seems quite similar to Elvish (https://elv.sh/); have you checked it out?
Re:Pure Bash Bible by hnlmorg on Thursday September 26, 2019 @04:51PM (#21085403)
Sorry, only just seen this comment. Just in case you're still following this thread and interested in a reply:

I'm aware of Elvish and really impressed with what's been built and the traction that has gained. There is definitely some overlap between murex and elvish but also a lot of area's where our shells differ.

I think there is sufficient difference between the two shells to justify their existence.

Re:Pure Bash Bible by Crestwave on Monday October 07, 2019 @03:02AM (#21178183)
Oh, definitely. Just thought it was something you should check out and I didn't see it mentioned anywhere.
Re:Pure Bash Bible by jigglesniggle on Thursday September 19, 2019 @09:47AM (#21016092)
Nice project, look forward to seeing a HN post on it!
Re:Pure Bash Bible by hnlmorg on Thursday September 19, 2019 @11:02AM (#21016836)
Thank you