You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Don't pass --no-ansi to rm, properly check if output is a TTY (#437)
* Don't pass --no-ansi to rm
When --force is used, rm is part of $commands.
rm something --no-ansi succeeds on macOS but fails on Linux.
* Properly check if output is a TTY
This now matches the check setTty() does.
Previously we were only checking the directory separator
and that /dev/tty exists and is readable.
isTtySupported() checks if /dev/tty is *writable* and more
importantly that STDOUT itself is a TTY.
Simply running `laravel new --stuff foo | head` would produce TTY warns
on systems where /dev/tty exists just fine and only stdout is piped.
0 commit comments