Created
December 10, 2020 15:15
-
-
Save AndreSteenveld/fed7956a155545a211c928a778b95a3a to your computer and use it in GitHub Desktop.
winpty stub for nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
eval "$@" <(cat) | |
# | |
# Every now and then I have to write scripts which will work from git-bash as well as a proper *nix | |
# system. Adding this on my *nix system helps with the strangeness which is git-bash. All we would | |
# like to do here is redirect all the stdin, out and err "like winpty does" on a windows system. | |
# | |
# Clearly on *nix there is no need to translate between tty and the terminal serivice on windows. | |
# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment