Skip to content

Commit f98ed55

Browse files
committed
fix regression test (re: 0dde6f1)
1 parent 0dde6f1 commit f98ed55

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/cmd/ksh93/tests/builtins.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1717,10 +1717,12 @@ got=$(set +x; redirect 2>&1; "$SHELL" -c 'fc -p !! !nonexistent')
17171717
fi # SHOPT_HISTEXPND
17181718
17191719
# ======
1720+
if((SHOPT_MULTIBYTE));then
17201721
got=$(printf '\u0025\n' 2>&1)
17211722
exp='%'
17221723
[[ $got == "$exp" ]] || err_exit '\u0025 misparsed as literal % in printf formatter' \
17231724
"(expected $(printf %q "$exp"), got $(printf %q "$got"))"
1725+
fi # SHOPT_MULTIBYTE
17241726
17251727
# ====== MUST BE AT END ======
17261728
# checks for tests run in parallel (see top)

0 commit comments

Comments
 (0)