Skip to content
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

Allow defining Before or After code in the config #36

Open
tkiselev opened this issue Oct 13, 2024 · 2 comments
Open

Allow defining Before or After code in the config #36

tkiselev opened this issue Oct 13, 2024 · 2 comments

Comments

@tkiselev
Copy link

I feel like this would be a useful feature. My specific use case is that I want to use pypyp with other *nix tools, but it often complains about broken pipes if I use commands like head.

One fix could be to add alias pyp='pyp -b "signal.signal(signal.SIGPIPE,signal.SIG_DFL)"' (see here) to my shell config, but I feel like it would be cleaner if I could set that in the configuration.

Thanks!

@hauntsaninja
Copy link
Owner

Thanks for mentioning!

I think it probably makes sense to just reset the SIGPIPE handler by default: #38

I could also provide the feature as requested: #39

Any thoughts of which one or both we should do?

@tkiselev
Copy link
Author

tkiselev commented Nov 3, 2024

Resetting the handler by default seems like a good idea to me, I don't have another specific use case for setting code in the config but it seems like a nice-to-have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants