xref: /freebsd/crypto/openssh/regress/host-expand.sh (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1#	$OpenBSD: host-expand.sh,v 1.5 2017/04/30 23:34:55 djm Exp $
2#	Placed in the Public Domain.
3
4tid="expand %h and %n"
5
6echo 'PermitLocalCommand yes' >> $OBJ/ssh_proxy
7printf 'LocalCommand printf "%%%%s\\n" "%%n" "%%h"\n' >> $OBJ/ssh_proxy
8
9cat >$OBJ/expect <<EOE
10somehost
11127.0.0.1
12EOE
13
14${SSH} -F $OBJ/ssh_proxy somehost true >$OBJ/actual
15diff $OBJ/expect $OBJ/actual || fail "$tid"
16
17