Skip to content

fix: prevent host-spawn from consuming profile stdin - #2155

Open
hypengw wants to merge 1 commit into
89luca89:mainfrom
hypengw:fix-stdin
Open

fix: prevent host-spawn from consuming profile stdin#2155
hypengw wants to merge 1 commit into
89luca89:mainfrom
hypengw:fix-stdin

Conversation

@hypengw

@hypengw hypengw commented Jul 8, 2026

Copy link
Copy Markdown

Fix distrobox_profile.sh and fish profile generation so host-spawn does not consume the profile shell's stdin.

When a login shell is started with script input from stdin, for example:

echo 'echo xxx;' | bash -l

The generated profile can run host-spawn while inheriting that same stdin. This may consume the remaining script input before the login shell executes it.

This redirects host-spawn calls to use /dev/null .

@balanza

balanza commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

Hi @hypengw, thanks for the contribution. I am not sure I understand correctly what is the scenario that you are addressing. Can you provide more instructions to replicate your setup?

Thanks

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

Successfully merging this pull request may close these issues.

2 participants