From 8cc52c14e6eedbe9387b024edc5fef3a1e5737da Mon Sep 17 00:00:00 2001 From: dtucker Date: Sat, 4 Apr 2020 22:14:26 +0000 Subject: [PATCH] Some platforms don't have "hostname -s", so use cut to trim short hostname instead. --- regress/usr.bin/ssh/percent.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/regress/usr.bin/ssh/percent.sh b/regress/usr.bin/ssh/percent.sh index ef37ab22c09..a09f1612424 100644 --- a/regress/usr.bin/ssh/percent.sh +++ b/regress/usr.bin/ssh/percent.sh @@ -1,11 +1,11 @@ -# $OpenBSD: percent.sh,v 1.4 2020/04/03 07:53:10 dtucker Exp $ +# $OpenBSD: percent.sh,v 1.5 2020/04/04 22:14:26 dtucker Exp $ # Placed in the Public Domain. tid="percent expansions" USER=`id -u -n` USERID=`id -u` -HOST=`hostname -s` +HOST=`hostname | cut -f1 -d.` HOSTNAME=`hostname` # Localcommand is evaluated after connection because %T is not available