开发者

how bash word wrap with \ works?

In bash scripts why these lines work:

perl -e "...\
..."
开发者_开发技巧

but these don't:

perl -e \
"... \
..."

??


Works fine for me. The only thing i can suggest is, make sure there's nothing between the backslash and the newline. (Any other whitespace could mess things up.)


Make sure there is nothing between the contents of the string and the backslash if spaces are significant (see the second line of your second example).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜