]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: Although it's POSIX, not all shells used in Portable support
authordtucker@openbsd.org <dtucker@openbsd.org>
Sun, 8 Aug 2021 08:27:28 +0000 (08:27 +0000)
committerDarren Tucker <dtucker@dtucker.net>
Sun, 8 Aug 2021 08:43:41 +0000 (18:43 +1000)
the implicit 'in "$@"' after 'for i'.

OpenBSD-Regress-ID: 3c9aec6bca4868f85d2742b6ba5223fce110bdbc

regress/test-exec.sh

index 73512a6121ff2def2e9885be47c1e0bbb81415d7..db6d6161aa2bf90733eba7d0a024fec5f0602cd2 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: test-exec.sh,v 1.85 2021/08/08 07:27:52 dtucker Exp $
+#      $OpenBSD: test-exec.sh,v 1.86 2021/08/08 08:27:28 dtucker Exp $
 #      Placed in the Public Domain.
 
 #SUDO=sudo
@@ -262,7 +262,7 @@ fi
 SSHLOGWRAP=$OBJ/ssh-log-wrapper.sh
 cat >$SSHLOGWRAP <<EOD
 #!/bin/sh
-for i; do shift; case "\$i" in -q) :;; *) set -- "\$@" "\$i";; esac; done
+for i in "\$@";do shift;case "\$i" in -q):;; *) set -- "\$@" "\$i";;esac;done
 exec ${SSH} -E${TEST_SSH_LOGFILE} "\$@"
 EOD