summaryrefslogtreecommitdiff
path: root/regress/percent.sh
diff options
context:
space:
mode:
authordtucker@openbsd.org <dtucker@openbsd.org>2020-04-04 22:14:26 +0000
committerDarren Tucker <dtucker@dtucker.net>2020-04-05 08:40:46 +1000
commitdb0fdd48335b5b01114f78c1a73a195235910f81 (patch)
treea4edb81efc88b473cbc83cf8a6a5186e41f634b3 /regress/percent.sh
parente7e59a9cc8eb7fd5944ded28f4d7e3ae0a5fdecd (diff)
upstream: Some platforms don't have "hostname -s", so use cut to trim
short hostname instead. OpenBSD-Regress-ID: ebcf36a6fdf287c9336b0d4f6fc9f793c05307a7
Diffstat (limited to 'regress/percent.sh')
-rw-r--r--regress/percent.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/percent.sh b/regress/percent.sh
index ef37ab22c..a09f16124 100644
--- a/regress/percent.sh
+++ b/regress/percent.sh
@@ -1,11 +1,11 @@
1# $OpenBSD: percent.sh,v 1.4 2020/04/03 07:53:10 dtucker Exp $ 1# $OpenBSD: percent.sh,v 1.5 2020/04/04 22:14:26 dtucker Exp $
2# Placed in the Public Domain. 2# Placed in the Public Domain.
3 3
4tid="percent expansions" 4tid="percent expansions"
5 5
6USER=`id -u -n` 6USER=`id -u -n`
7USERID=`id -u` 7USERID=`id -u`
8HOST=`hostname -s` 8HOST=`hostname | cut -f1 -d.`
9HOSTNAME=`hostname` 9HOSTNAME=`hostname`
10 10
11# Localcommand is evaluated after connection because %T is not available 11# Localcommand is evaluated after connection because %T is not available