LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 758|回复: 0

在ubuntu上执行echo -ne "\33[0m"结果错误[已解决]

[复制链接]
发表于 2007-6-26 14:08:16 | 显示全部楼层 |阅读模式
在ubuntu上执行echo -ne "\33[0m",显示\33[0m,没有得到预期结果,执行echo $SHELLOPTS的输出为:
braceexpand:emacs:hashall:histexpand:interactive-comments:monitor
而在一台readhat es4系统上执行正确,其echo $SHELLOPTS输出为:
braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor

请问大虾,怎么才能让其显示正确结果呢?

在ubuntu上需要执行echo -ne "\033[0m"
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表