Ctypes.sh: A foreign function interface for bash
github.com
github.com
———
Here is what people have been saying about ctypes.sh:
"that's disgusting" "this has got to stop" "you've gone too far with this" "is this a joke?" "I never knew the c could stand for Cthulhu." You can read more about ctypes.sh and see it in action on the Wiki
Basically, with this, you can call --any-- dynamic library function from bash. Pretty impressive.
Not sure what you mean by this. That Linux offers command line tools that generate textual output vs. putting the functionality in libraries?
My understanding is that Microsoft recognized in the 1990s that shell scripting blows. (See for example “Bash Error Handling”[0] - a web comic with 273 points and 97 comments - which was on the front page in the past day.)
MS expected that people would use proper programming languages to do complex tasks that are frequently (and arguably unfortunately) performed via shell scripts on *nix and batch files on Windows. This is why Windows Scripting Host[1] exists. Functionality in DLLs is easily accessible without resorting to hacks like rundll32.exe.
(I don’t know the 0 - https://news.ycombinator.com/item?id=24727495
s/\(I don’t know the //https://docs.python.org/3/library/ctypes.html
(which I think should have been mentioned in the README)