News for hackers. Stuff that matters.

Show HN: Zrc - a Unix shell without fi, esac or done

https://github.com/Edd12321/zrc

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)
( 2 comments | on HN )
Re:Show HN: Zrc - a Unix shell without fi, esac or done by ifh-hn on Wednesday October 29, 2025 @04:22PM (#45752539)
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.
Re:Show HN: Zrc - a Unix shell without fi, esac or done by edward_9x on Thursday October 30, 2025 @07:54AM (#45759034)
Sure! The repo contains example scripts in the examples/ folder. The README is bare, though https://github.com/Edd12321/zrc/tree/master/examples