[openssh-commits] [openssh] 01/01: work around echo -n / sed behaviour in tests

git+noreply at mindrot.org git+noreply at mindrot.org
Thu Aug 6 11:44:32 AEST 2015


This is an automated email from the git hooks/post-receive script.

djm pushed a commit to branch master
in repository openssh.

commit 2651e34cd11b1aac3a0fe23b86d8c2ff35c07897
Author: Damien Miller <djm at mindrot.org>
Date:   Thu Aug 6 11:43:42 2015 +1000

    work around echo -n / sed behaviour in tests
---
 regress/cert-userkey.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/regress/cert-userkey.sh b/regress/cert-userkey.sh
index 739a036..c38c00a 100644
--- a/regress/cert-userkey.sh
+++ b/regress/cert-userkey.sh
@@ -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

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list