diff options
Diffstat (limited to 'tools/regression/usr.bin/pkill/pgrep-t.t')
-rw-r--r-- | tools/regression/usr.bin/pkill/pgrep-t.t | 5 |
1 files changed, 4 insertions, 1 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 |