Hacker News new | ask | show | jobs
Show HN: Zrc - a Unix shell without fi, esac or done (github.com)
2 points by edward_9x 230 days ago
Welp, second time posting this project! Bourne shell's ALGOL-inspired syntax seems a bit verbose, and while `rc` is quite nice, it lacks some features I'd prefer in a shell (this is probably by design). Though don't let the name I chose fool you, this shell is probably more related to `tcl` or `csh` than `rc`, except in some small places. It's been a while since my last post. Notable new features include a stack trace (via `caller`), `try`/`catch` (but only with user-supplied strings), `fc`, `disown`, login shell detection, and a shorter argv alias (`${argv number}` becomes `$number`). I'd love some feedback on the design. (Also yes, I'm aware the line editor can't wrap that well. Probably WONTFIX)
1 comments

Some examples on the readme would be good. I checked currently use nushell as my preferred shell and it was the example code that convinced me to try it out.
Sure! The repo contains example scripts in the examples/ folder. The README is bare, though https://github.com/Edd12321/zrc/tree/master/examples