Thorsten Glaser <[email protected]> wrote:
|Steffen Daode Nurpmeso dixit:
|
|>But, according to the famous (to me) [1], mksh-R28/R39 did support
|>\c, which made me thought it's also working like \c is supposed to
|>work.
|
|No. \c is *not* supposed to work in POSIX mode.
|The implementations̲ (note the plural form) of
|the echo builtin got fixed in the meantime.
|
|You can select between them, though.
|
|tglase@tglase:~ $ mksh -c 'echo foo\\c; echo $KSH_VERSION'
|foo@(#)MIRBSD KSH R46 2013/05/02
You mean
0[steffen@sherwood nail.git]$ dash -c 'echo foo\\cwooh!; echo $HOME'
/Users/steffen
|Try set +o posix +o sh.
0[steffen@sherwood nail.git]$ mksh -c 'echo foo\\cwooh!; echo $HOME'
foowooh!/Users/steffen
?0[steffen@sherwood nail.git]$ mksh -o posix -o sh -c 'echo foo\\cwooh!; echo
$HOME'
foo\cwooh!
/Users/steffen
|In that case, use print ;-)
It's not me who's running on Android ha.
Ciao,
--steffen