-
Notifications
You must be signed in to change notification settings - Fork 167
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
Does winpty work with pipes? #101
Comments
winpty aborts if stdout is a pipe (i.e. not a tty). It should do something else. I commented on issue #73 just now. Issue #100 is also relevant. In your particular case, skipping winpty is the right thing to do. It would probably be an improvement if the |
I want to share a little trick shell script I made to make winpty work like a treat!
I will maintain updates/improvements here: https://gist.github.com/CMCDragonkai/a897910414206010a7d2633d78504e3d Main idea is that you rename the script to whatever executable you want to wrap, like |
@CMCDragonkai I think the |
I deliberately left it unquoted. Because I want explicit parameter quoting left to the caller of the script. I think it works this way? |
@rprichard Oh you are right, it needs to be quoted, I thought it would the other way around. |
I've noticed some commands don't work well, like Windows Python httpie can't redirect to anything regardless of whether you use winpty or not. |
@rprichard @dscho Faced a similar issue yesterday: git-for-windows/git#519 (comment) |
I just tried this:
Where
docker
is an alias:It does of course work if I then try
\docker save somecontainer | gzip > ./somecontainer.tar.gz
The text was updated successfully, but these errors were encountered: