diff options
author | dtucker@openbsd.org <dtucker@openbsd.org> | 2020-04-04 22:14:26 +0000 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2020-04-05 08:40:46 +1000 |
commit | db0fdd48335b5b01114f78c1a73a195235910f81 (patch) | |
tree | a4edb81efc88b473cbc83cf8a6a5186e41f634b3 /regress/percent.sh | |
parent | e7e59a9cc8eb7fd5944ded28f4d7e3ae0a5fdecd (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.sh | 4 |
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 | ||
4 | tid="percent expansions" | 4 | tid="percent expansions" |
5 | 5 | ||
6 | USER=`id -u -n` | 6 | USER=`id -u -n` |
7 | USERID=`id -u` | 7 | USERID=`id -u` |
8 | HOST=`hostname -s` | 8 | HOST=`hostname | cut -f1 -d.` |
9 | HOSTNAME=`hostname` | 9 | HOSTNAME=`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 |