]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
work around echo -n / sed behaviour in tests
authorDamien Miller <djm@mindrot.org>
Thu, 6 Aug 2015 01:43:42 +0000 (11:43 +1000)
committerDamien Miller <djm@mindrot.org>
Thu, 6 Aug 2015 01:43:42 +0000 (11:43 +1000)
regress/cert-userkey.sh

index 739a036e2f67eaeb74a41fdacd73e41700c20586..c38c00a0217ef0ca804b77648497e97de1875890 100644 (file)
@@ -10,8 +10,8 @@ cp $OBJ/ssh_proxy $OBJ/ssh_proxy_bak
 PLAIN_TYPES=`$SSH -Q key-plain | sed 's/^ssh-dss/ssh-dsa/;s/^ssh-//'`
 
 kname() {
-       echo -n $1 | sed 's/^dsa/ssh-dss/;s/^rsa/ssh-rsa/;s/^ed/ssh-ed/'
-       echo "*,ssh-rsa*,ssh-ed25519*"
+       n=`echo "$1" | sed 's/^dsa/ssh-dss/;s/^rsa/ssh-rsa/;s/^ed/ssh-ed/'`
+       echo "$n*,ssh-rsa*,ssh-ed25519*"
 }
 
 # Create a CA key