I didn't know this "enable -f" feature of bash, it's certainly handy. What are some other interesting binary bash plugins?
I really like this one, most certainly one would use it to build specialized bash libraries that wraps all the ugly stuff. Like a speedy sqlite3 bash library that keeps a database connection open and you can build up transactions by multiple bash commands, it would be a nice alternative to calling sqlite3 multiple times or building a huge sql statement and then calling it once.
Thanks to cemeyer freebsd is done. I've added now darwin and potential windows (cygwin+mingw) support.
Just need to check how to link to bash on windows, because windows cannot link with unresolved symbols. Had no time to recompile bash on windows yet.
I had no idea you could do this sort of stuff, it honestly scares me a bit, but is cool, kudos.
FWIW you can get away with a lot from sh with the help of perl (arbitrary syscalls) and debuggers (like gdb, breakpoint and change return values or just call any function). In solaris it's particularly easy with truss and the p* commands.
Cool stuff. Reminds me of iPython and xonsh.
http://ipython.org/ http://xonsh.org/