I stumbled upon a weird problem with echo
on GNU bash, version 5.1.12(1)-release (x86_64-pc-solaris2.11)
:
bash-5.1$ builtin echo -e 'a\tb'
a b
bash-5.1$ builtin echo 'a\tb'
a b
bash-5.1$ builtin echo +e 'a\tb'
+e a b
While it won't affect my scripts because I mostly use printf
, how do you turn echo -e
off in bash?