mirror of
git://anongit.mindrot.org/openssh.git
synced 2024-12-31 14:52:08 +00:00
upstream: Some platforms don't have "hostname -s", so use cut to trim
short hostname instead. OpenBSD-Regress-ID: ebcf36a6fdf287c9336b0d4f6fc9f793c05307a7
This commit is contained in:
parent
e7e59a9cc8
commit
db0fdd4833
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user