Print tab character in fish

fish

In bash I could either do echo -e "a\tb" or echo a$'\t'b.

How do you do this in fish?

Best Answer

\t, without quotes. Same thing for other control characters (\n for a newline, etc.).

Related Question