Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

On blend enter, only pass -it to podman if stdout is tty #15

Open
dancojocaru2000 opened this issue Dec 14, 2024 · 0 comments
Open

On blend enter, only pass -it to podman if stdout is tty #15

dancojocaru2000 opened this issue Dec 14, 2024 · 0 comments

Comments

@dancojocaru2000
Copy link

dancojocaru2000 commented Dec 14, 2024

I was trying to move a file out of a container onto the host OS by using tar:

tar.arch -chC /usr/share/icons/hicolor/16x16/apps file.png | tar -x

This failed, with tar.arch printing tar: Refusing to write archive contents to terminal (missing -f option?), because, even if I piped the output of tar.arch, blend enter called podman with -it, giving the tar inside the arch container a TTY, and so tar refused to print the output.

blend enter should check if stdout is a tty and only pass -it if true.

There should also be flags to force the behaviour one way or the other.

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

No branches or pull requests

1 participant