svn commit: r201489 - head/tools/regression/usr.bin/pkill
David E. O'Brien
obrien at FreeBSD.org
Mon Jan 4 10:59:15 UTC 2010
Author: obrien
Date: Mon Jan 4 10:59:14 2010
New Revision: 201489
URL: http://svn.freebsd.org/changeset/base/201489
Log:
Catch up with UNIX98-style PTY's.
Modified:
head/tools/regression/usr.bin/pkill/pgrep-t.t
head/tools/regression/usr.bin/pkill/pkill-t.t
Modified: head/tools/regression/usr.bin/pkill/pgrep-t.t
==============================================================================
--- head/tools/regression/usr.bin/pkill/pgrep-t.t Mon Jan 4 10:58:08 2010 (r201488)
+++ head/tools/regression/usr.bin/pkill/pgrep-t.t Mon Jan 4 10:59:14 2010 (r201489)
@@ -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
Modified: head/tools/regression/usr.bin/pkill/pkill-t.t
==============================================================================
--- head/tools/regression/usr.bin/pkill/pkill-t.t Mon Jan 4 10:58:08 2010 (r201488)
+++ head/tools/regression/usr.bin/pkill/pkill-t.t Mon Jan 4 10:59:14 2010 (r201489)
@@ -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
More information about the svn-src-all
mailing list