summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2010-01-04 10:59:14 +0000
committerobrien <obrien@FreeBSD.org>2010-01-04 10:59:14 +0000
commitc08a21642c0a503bd6818073fedccedd4bd01d2c (patch)
tree4721b539a0f77c56f96cae324f87060627142891 /tools
parented014ff383bb451e6572e1ccf0a75b2cc1e93aef (diff)
downloadFreeBSD-src-c08a21642c0a503bd6818073fedccedd4bd01d2c.zip
FreeBSD-src-c08a21642c0a503bd6818073fedccedd4bd01d2c.tar.gz
Catch up with UNIX98-style PTY's.
Diffstat (limited to 'tools')
-rw-r--r--tools/regression/usr.bin/pkill/pgrep-t.t5
-rw-r--r--tools/regression/usr.bin/pkill/pkill-t.t5
2 files changed, 8 insertions, 2 deletions
diff --git a/tools/regression/usr.bin/pkill/pgrep-t.t b/tools/regression/usr.bin/pkill/pgrep-t.t
index 7e81ada..04f0e12 100644
--- a/tools/regression/usr.bin/pkill/pgrep-t.t
+++ b/tools/regression/usr.bin/pkill/pgrep-t.t
@@ -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
diff --git a/tools/regression/usr.bin/pkill/pkill-t.t b/tools/regression/usr.bin/pkill/pkill-t.t
index cbef527..76c4f28 100644
--- a/tools/regression/usr.bin/pkill/pkill-t.t
+++ b/tools/regression/usr.bin/pkill/pkill-t.t
@@ -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
OpenPOWER on IntegriCloud