-
-
Notifications
You must be signed in to change notification settings - Fork 192
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
Stricter POSIX sh compliance #440
Comments
It seems there are two potential blockers for your proposal. First, neither POSIX nor these shells have preexec functions. POSIX doesn't specify a pre-function trap, which is needed for auto.sh switching to work. Second, features like As the Oil author writes, POSIX doesn't define enough common ground so shells have gone beyond it and diverged.
There's an mksh branch of chruby that's portable and works other than mksh not supporting preexec functions. I don't think any of the shells you list do, which would mean no auto switching until they implement a prexec function feature. A shell like Oil or mksh might do that—but dash and friends likely never will. I saw preexec functions mentioned as a possible mksh function, but they haven't implemented it as far as I know. Would you think it's worth targeting portability for any of these shells without support for auto switching? P.S. It was fun looking into Oil shell. Thanks for mentioning it! |
I think you might be right about that. I was under the impression that chruby and friends were simply aliasing |
From ReadMe:
I guess it’s because aliasing |
This would allow more users to benefit from chruby!
The text was updated successfully, but these errors were encountered: