mirror of
https://codeberg.org/landley/toybox.git
synced 2026-01-26 14:13:25 +00:00
Workaround mksh expanding ~ even when it's not the first char in a word.
This commit is contained in:
parent
a617454a04
commit
c914983e3a
@ -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 \)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user