Bash sourcing of functions in other languages
Posted
by ABach
on Stack Overflow
See other posts from Stack Overflow
or by ABach
Published on 2010-05-08T18:14:17Z
Indexed on
2010/05/08
18:18 UTC
Read the original article
Hit count: 369
This is, perhaps, a silly question, but it's something that I've wondered about: is it possible to, say, define a Ruby/Python/Perl/etc. function in some file and then source it in Bash (to make it available anywhere in the current shell)?
At the moment, I "source" scripts/functions in other languages by creating a bash alias that executes that script... But I wonder if it's possible for Bash to interpret those other functions directly?
Thanks. :)
© Stack Overflow or respective owner