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

do not attach PIPE file handle on STDIN of run_shell_cmd unless there are contents for it #4728

Merged
merged 1 commit into from
Dec 23, 2024

Conversation

lexming
Copy link
Contributor

@lexming lexming commented Dec 22, 2024

Fixes easybuilders/easybuild-easyconfigs#22094

We always attach the PIPE file handle to STDIN regardless if there is any input to be passed to the command. This seems to be ok on Python 3.9+, but it is troublesome on Python 3.6 where the resulting shell has as an attached handle without EOF even if nothing is passed to STDIN. So software like perl think that they are inside an interactive shell.

@lexming lexming added this to the 5.0 milestone Dec 22, 2024
@lexming lexming force-pushed the perl-interact-shell branch from bdfc65e to a5e0937 Compare December 23, 2024 00:51
@boegel boegel changed the title do not attach PIPE file handle on STDIN of run_shell_cmd unless there are contents for it do not attach PIPE file handle on STDIN of run_shell_cmd unless there are contents for it Dec 23, 2024
Copy link
Member

@boegel boegel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@boegel boegel merged commit 25a9978 into easybuilders:5.0.x Dec 23, 2024
39 checks passed
@lexming lexming deleted the perl-interact-shell branch December 23, 2024 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: run_shell_cmd
Development

Successfully merging this pull request may close these issues.

2 participants