echo “-e” doesn't print anything

后端 未结 10 2185
谎友^
谎友^ 2020-12-03 22:11

I\'m using GNU bash, version 3.00.15(1)-release (x86_64-redhat-linux-gnu). And this command:

echo \"-e\" 

doesn\'t print anything. I guess

10条回答
  •  渐次进展
    2020-12-03 22:40

    You could cheat by doing

    echo "-e "
    

    That would be dash, e, space.

    Alternatively you can use the more complex, but more precise:

    echo -e \\\\x2De
    

提交回复
热议问题