Closed laurenthuberdeau closed 3 months ago
➜ ksh -E 'printf "-="' ksh: printf: -=: unknown option Usage: printf [ options ] format [string ...]
Escaping the leading - makes it print -= as expected:
-
-=
➜ ksh -E 'printf "\-="' -=%
But not on dash, which prints the \:
\
➜ dash -c 'printf "-="' dash: 1: printf: Illegal option -= ➜ dash -c 'printf "\-="' \-=%
Bug
Escaping the leading
-
makes it print-=
as expected:But not on dash, which prints the
\
: