-
-
Notifications
You must be signed in to change notification settings - Fork 163
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
osh: 'trap' requires a code string #1881
Comments
I ran into this in some real-world code of mine; I have an "atexit" library I use, and as a sanity check, it greps for EXIT in the output of |
(sorry for delayed response) I am not sure how those 2 things are related? Are you getting the error I think we should fix it anyway, but this could be a separate issue |
Yes, I'm getting the error |
While you're at it fix this too
|
|
Other shells close internal file descriptors before execing a command.
Don't care, I only responded because I received a notification. I don't test osh anymore |
Trap without args This may require re-printing the AST. Or maybe we can just save the entire code string too. We may be able to attach the source.ArgvWord to the trap dict? Unrelated: comment about memset.
closed in favor of #2198 |
See:
It'd be nice to have this basic feature in OSH (assuming it is actively developed).
The text was updated successfully, but these errors were encountered: