Skip to main content
2 of 4
added 206 characters in body
BrainStone
  • 3.8k
  • 12
  • 41
  • 58

"echo -e" in Linux shell

I just noticed that it seems like the flag -e does not exist for the echo in the linux shell.

Is this just a messed up setting or is it "normal"?

Some code as an example:

#!/bin/sh
echo -e "\e[3;12r\e[3H"

Prints:

-e \e[3;12r\e[3H

EDIT:

I forgot to mention that this worked before!!! I guess some stty commands went terribly wrong and now it does not work anymore. Somebody suggested that my sh was actually just bash.

BrainStone
  • 3.8k
  • 12
  • 41
  • 58