On 12/05/2021 22:36, Steffen Nurpmeso wrote:
Hello. Just fyi, i stumbled upon this a minute ago: #?0|kent:steffen$ echo du \\\\\ > hey du \\hey That was bash 5.1.8. #?0|kent:steffen$ dash #kent:$ echo du \\\\\ > das du \das #kent:$ This is dash 0.5.11.3 (compiled by gcc (CRUX-x86_64-multilib) 10.2.0 on 2020-12-26), running on CRUX-Linux via glibc 2.32/3. Ciao,
This is expected as dash's echo always processes backslashes. bash will give the same output when its xpg_echo option is enabled.
Cheers, Harald van Dijk