Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 4 additions & 19 deletions tests/fixtures/nohup/is_a_tty.sh
Original file line number Diff line number Diff line change
@@ -1,21 +1,6 @@
#!/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
[ -t 0 ] && echo "stdin is a tty" || echo "stdin is not a tty"
[ -t 1 ] && echo "stdout is a tty" || echo "stdout is not a tty"
[ -t 2 ] && echo "stderr is a tty" || echo "stderr is not a tty"
:
Loading