Catch up with UNIX98-style PTY's.

This commit is contained in:
obrien 2010-01-04 10:59:14 +00:00
parent ed014ff383
commit c08a21642c
2 changed files with 8 additions and 2 deletions

View File

@ -11,7 +11,10 @@ if [ "$tty" = "??" ]; then
tty="-"
ttyshort="-"
else
ttyshort=`echo $tty | cut -c 4-`
case $tty in
pts/*) ttyshort=`echo $tty | cut -c 5-` ;;
*) ttyshort=`echo $tty | cut -c 4-` ;;
esac
fi
sleep=`mktemp /tmp/$base.XXXXXX` || exit 1
ln -sf /bin/sleep $sleep

View File

@ -11,7 +11,10 @@ if [ "$tty" = "??" ]; then
tty="-"
ttyshort="-"
else
ttyshort=`echo $tty | cut -c 4-`
case $tty in
pts/*) ttyshort=`echo $tty | cut -c 5-` ;;
*) ttyshort=`echo $tty | cut -c 4-` ;;
esac
fi
sleep=`mktemp /tmp/$base.XXXXXX` || exit 1
ln -sf /bin/sleep $sleep