Skip to content

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

Merged
boegel merged 1 commit intoeasybuilders:5.0.xfrom
lexming:perl-interact-shell
Dec 23, 2024
Merged

do not attach PIPE file handle on STDIN of run_shell_cmd unless there are contents for it#4728
boegel merged 1 commit intoeasybuilders:5.0.xfrom
lexming:perl-interact-shell

Conversation

@lexming
Copy link
Copy Markdown
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
Copy Markdown
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
@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

None yet

Development

Successfully merging this pull request may close these issues.

2 participants