[openssh-commits] [openssh] 01/02: Add "rev" command replacement if needed.

git+noreply at mindrot.org git+noreply at mindrot.org
Wed Jan 12 18:31:55 AEDT 2022


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

dtucker pushed a commit to branch master
in repository openssh.

commit 6bf2efa2679da1e8e60731f41677b2081dedae2c
Author: Darren Tucker <dtucker at dtucker.net>
Date:   Wed Jan 12 18:25:06 2022 +1100

    Add "rev" command replacement if needed.
---
 regress/test-exec.sh | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/regress/test-exec.sh b/regress/test-exec.sh
index dfb5085b..9bee33e2 100644
--- a/regress/test-exec.sh
+++ b/regress/test-exec.sh
@@ -320,6 +320,12 @@ have_prog()
 jot() {
 	awk "BEGIN { for (i = $2; i < $2 + $1; i++) { printf \"%d\n\", i } exit }"
 }
+if [ ! -x "`which rev`" ]; then
+rev()
+{
+	awk '{for (i=length; i>0; i--) printf "%s", substr($0, i, 1); print ""}'
+}
+fi
 
 # Check whether preprocessor symbols are defined in config.h.
 config_defined ()

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


More information about the openssh-commits mailing list