jamarir
2021-11-20, 10:41
When looking at echo's manual page, I see -E is used by default:
-n do not output the trailing newline
-e enable interpretation of backslash escapes[/HTML]
-E disable interpretation of backslash escapes (default)
But why -E needs to be added anyway to disable this interpretation ?
$ echo "Hello \t \World"
Hello \World
$ echo -E "Hello \t \World"
Hello \t \World
Shouldn't it be used by default ?
-n do not output the trailing newline
-e enable interpretation of backslash escapes[/HTML]
-E disable interpretation of backslash escapes (default)
But why -E needs to be added anyway to disable this interpretation ?
$ echo "Hello \t \World"
Hello \World
$ echo -E "Hello \t \World"
Hello \t \World
Shouldn't it be used by default ?