Comment by mattmight
"Think of it as an unholy combination of bash and Lisp" reminded me of Scheme Shell: https://scsh.net/
My Ph.D. advisor Olin Shivers created this. It's more pulling bash into Lisp than Lisp into bash.
It doesn't seem to be maintained anymore, but some of its ideas live on in Racket.
And now there’s Rash: The Reckless Racket Shell
http://rash-lang.org/
https://github.com/willghatch/racket-rash