From c914983e3aee6ed452ee38c3622d4fc1a8eaa2f7 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Fri, 10 Jan 2025 11:06:25 -0600 Subject: [PATCH] Workaround mksh expanding ~ even when it's not the first char in a word. --- tests/test.test | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test.test b/tests/test.test index d8808a2d..2732541d 100644 --- a/tests/test.test +++ b/tests/test.test @@ -136,9 +136,9 @@ testing ">1" 'test abc \> def || echo yes' "yes\n" "" "" testing ">2" 'test def \> abc && echo yes' "yes\n" "" "" # bash only has this for [[ ]] but extra tests to _exclude_ silly... -toyonly testcmd "=~" 'abc =~ a.c && echo yes' "yes\n" "" "" -toyonly testcmd "=~ fail" 'abc =~ d.c; echo $?' '1\n' "" "" -toyonly testcmd "=~ zero length match" 'abc =~ "1*" && echo yes' 'yes\n' '' '' +toyonly testcmd "=~" 'abc '=~' a.c && echo yes' "yes\n" "" "" +toyonly testcmd "=~ fail" 'abc '=~' d.c; echo $?' '1\n' "" "" +toyonly testcmd "=~ zero length match" 'abc '=~' "1*" && echo yes' 'yes\n' '' '' # test ! = -o a # test ! \( = -o a \)