我不明白如果激活或停用购物车xpg_echo会有什么变化。
在手册中:
xpg_echo
If set, the echo builtin expands backslash-escape
sequences by default.我试图激活/停用xpg_echo,但echo有相同的行为。
发布于 2012-11-23 02:51:51
它确定echo是否会像\n一样处理转义序列
$ shopt -u xpg_echo # Disable xpg_echo
$ echo "Hello\nworld"
Hello\nworld
$ shopt -s xpg_echo # Enable xpg_echo
$ echo "Hello\nworld"
Hello
worldhttps://stackoverflow.com/questions/13517818
复制相似问题