Ctypes.sh, a foreign function interface for bash
github.com
github.com
Cool stuff. Reminds me of iPython and xonsh.
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.
Here's a writeup of how to do plugins: http://www.drdobbs.com/shell-corner-bash-dynamically-loadabl...
I went to school with Chet in the late 80's and never knew about this feature until today. Looks like fun.
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.
If you think memory addresses are cool, check out GDB + Linux Kernel and how it allows you to examine data structures: https://wiki.ubuntu.com/Kernel/KernelDebuggingTricks
For bash or for POSIX shell? Why not just be POSIX compliant so it works everywhere?