A decade or so back, I wrote a zsh loadable module which embedded a Ruby interpreter into zsh, just for fun. I think I just did basic expression evaluation. I was able to do things like create a regex in Ruby and pass it back for use in Zsh, since both were using PCRE. I didn’t do a full integration, just bare-bones.
Since zsh has switched to git, I should probably dig that work out and push it as a toy feature branch. If I can still find it.
The equivalent for Python is
py.A decade or so back, I wrote a zsh loadable module which embedded a Ruby interpreter into zsh, just for fun. I think I just did basic expression evaluation. I was able to do things like create a regex in Ruby and pass it back for use in Zsh, since both were using PCRE. I didn’t do a full integration, just bare-bones.
Since zsh has switched to git, I should probably dig that work out and push it as a toy feature branch. If I can still find it.