- 论坛徽章:
- 0
|
第一步分割是绝对不会涉及到IFS的
书上说的很明白arithmetic subsitution后的分词动作才会参考$IFS的定义
原话:
第一步分词
Splits the command into tokens that are separated by the fixed set of metacharacters: SPACE, TAB, NEWLINE, ;, (, ), <, >, |, and &. Types of tokens include words, keywords, I/O redirectors, and semicolons.
arithmetic subsitution后的分词
Takes the parts of the line that resulted from parameter, command, and arithmetic substitution and splits them into words again. This time it uses the characters in $IFS as delimiters instead of the set of metacharacters in Step 1. |
|