10
votes
ctypes.sh: a Bash plugin that provides a foreign function interface directly in your shell
Link information
This data is scraped automatically and may be incorrect.
- Title
- GitHub - taviso/ctypes.sh: A foreign function interface for bash.
- Authors
- taviso
- Word count
- 310 words
There's a fun little section called "what people say" at the bottom of the README. I heavily relate to one of the comments there:
I fucked up the quote on the last post and I'm so fucking dissapointed in my self for it
https://www.youtube.com/watch?v=R2_Mn-qRKjA
This one is actually pretty cool. I'm unsure I'd ever go through the effort to install it even if I came across a case that its a good fit, but I could definitely see using this if it was a native feature of Bash. I can't think of any examples right off the top of my head, but I'm sure I've had cases in the past where being able to just call some little function without needing to build a whole wrapping process would've been useful.
The example that uses malloc from Bash is absolutely disgusting though.