commit:     739c62e4d8be2425c676026843a0a4c07f2f2dd1
Author:     Kerin Millar <kfm <AT> plushkava <DOT> net>
AuthorDate: Sat Aug 10 05:42:01 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Aug 11 10:11:03 2024 +0000
URL:        
https://gitweb.gentoo.org/proj/gentoo-functions.git/commit/?id=739c62e4

test-functions: comment as to why test_quote_args() fails for yash

Signed-off-by: Kerin Millar <kfm <AT> plushkava.net>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 test-functions | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/test-functions b/test-functions
index 0ab203b..28c72da 100755
--- a/test-functions
+++ b/test-functions
@@ -957,6 +957,12 @@ test_quote_args() {
 
                test_description="quote_args output test (expecting cksum 
380900690)"
                i=0
+               # The generator fails to produce the correct ouput in yash
+               # unless the effective character type is C/POSIX. However, once
+               # launched, yash ignores assignments to the LC_CTYPE variable
+               # if in its posix mode. As things stand, there is little point
+               # in fixing it because yash also disables the local builtin in
+               # its posix mode, causing test-functions to bail out sooner.
                while [ "$((i += 1))" -le 255 ]; do
                        fmt=$(printf '\\%o' "$i")
                        # shellcheck disable=2059

Reply via email to