-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port to ZShell #31
Comments
A better idea would be making it shell-independent, if possible. |
It looks like zsh does have a Let's investigate if this is possible. Unfortunately making it shell independent is not possible (ctypes.sh is a plugin, not a script), and needs loadable module support to work. |
It may be possible to have a single .so loadable by both module systems, if there's nothing explicitly incompatible about the interfaces. :-) Here is an example zsh module: https://sourceforge.net/p/zsh/code/ci/master/tree/Src/Modules/attr.c (in a directory full of modules). |
I advise against a single .so loadable by both zsh and bash, since that may turn as not maintainable. One can export common functions in a separate .o to be compiled in two different modules. Such an approach may also make it simple to port to other shells. |
why not make it a shell independent proper executable? something like:
also, @jaromil, what you're looking for is called a) "libdl.so" and b) "LuaJIT". and btw the language is called "Lua". spanish proper noun (moon), not an abbreviation. |
Great tool. Would be nice to have also in zsh.
The text was updated successfully, but these errors were encountered: