-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6125 from cre4ture/feature/config_terminal_simula…
…tion config terminal simulation for specific stdios only
- Loading branch information
Showing
5 changed files
with
191 additions
and
75 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
if [ -t 0 ] ; then | ||
echo "stdin is a tty" | ||
else | ||
echo "stdin is not a tty" | ||
fi | ||
|
||
if [ -t 1 ] ; then | ||
echo "stdout is a tty" | ||
else | ||
echo "stdout is not a tty" | ||
fi | ||
|
||
if [ -t 2 ] ; then | ||
echo "stderr is a tty" | ||
else | ||
echo "stderr is not a tty" | ||
fi | ||
|
||
true |
This file was deleted.
Oops, something went wrong.
14 changes: 7 additions & 7 deletions
14
tests/fixtures/util/is_atty.sh → tests/fixtures/util/is_a_tty.sh
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