[openssh-commits] [openssh] 01/01: Add wrapper for "sort" to set LC_ALL=C.

git+noreply at mindrot.org git+noreply at mindrot.org
Mon Jan 10 21:08:59 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 3ef403f351e80a59b6f7e9d43cb82c181855483c
Author: Darren Tucker <dtucker at dtucker.net>
Date:   Mon Jan 10 21:07:38 2022 +1100

    Add wrapper for "sort" to set LC_ALL=C.
    
    Found by djm, this should make sorts stable and reduce test flakiness.
---
 regress/test-exec.sh | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/regress/test-exec.sh b/regress/test-exec.sh
index 645b5321..dfb5085b 100644
--- a/regress/test-exec.sh
+++ b/regress/test-exec.sh
@@ -79,6 +79,12 @@ if test "x${EGREP}" != "x"; then
 }
 fi
 
+# Force sort to have stable output.
+sort()
+{
+	env LC_ALL=C sort "$@"
+}
+
 SRC=`dirname ${SCRIPT}`
 
 # defaults

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


More information about the openssh-commits mailing list