atty
atty copied to clipboard
Make Windows msys detection more robust
This helps to avoid false positives from file paths that just so happen to include the magic strings.
It's done by detecting if the file is actually a pipe and that it starts with "msys-" or "cygwin-" (rather than being substrings anywhere in the file path). Tested on msys and git bash.