Closed greg-1-anderson closed 5 years ago
Whats the status of this? Forum everywhere are inundated with questions about why TTY is being set improperly by default which causes sql-dump to output to the screen via stderr I think. This results in the inability to pipe the output to a file on the local machine thats running drush via the > character. I've seen 2 issues here in the issue queue that were closed and marked as "fixed" I think rather than being marked as duplicates. This seems to be a really old issue that literally every person using drush in a remote setting will have (which is a lot).
The workaround of setting tty to 0 in an alias file works, but its a pain to have to search for fixes for basic items like this.
Overview
This pull request:
Summary
The Symfony method for detecting ttys does not seem to be as reliable as
posix_isatty
, so we will favor the later if it is available.