3.5 Shell展开(Shell Expansion)

2017-10-17  本文已影响0人  Doerthous

何时


当command line(?指每一行command?)被分割成tokens后,执行shell展开

种类


注:
    展开执行的顺序如上。

展开之后


展开完成后,所有在原来的word中的quote字符被移除,除非它本身被quoted。这个过程称为引用去除

待完善

(?这段话不知道怎么理解?)
Only brace expansion, word splitting, and filename expansion can change the number
of words of the expansion; other expansions expand a single word to a single word. The
only exceptions to this are the expansions of "$@" and "${name[@]}".

上一篇 下一篇

猜你喜欢

热点阅读