- 论坛徽章:
- 0
|
在bash reference manual 一书开头处的chapter 2 Definitions(英文版page3 )一章中给出了metacharactor, operator, control operator的定义:
1. metacharacter:
A character that, when unquoted, separates words. A metacharacter is a blank or one of the following characters: ‘|’, ‘&’, ‘;’, ‘(’, ‘)’, ‘<’, or ‘>’.
2. operator:
A control operator or a redirection operator. See Section 3.6 [Redirections], page 26, for a list of redirection operators. Operators contain at least one unquoted metacharacter.
3. control operator
A token that performs a control function. It is a newline or one of the following: ‘||’, ‘&&’, ‘&’, ‘;’, ‘;;’, ‘|’, ‘|&’, ‘(’, or ‘)’.
问题: 控制操作符 newline 包含哪几个 metacharater, 或者这样问:newline到底用什么metacharater表示?
我考虑至少要包含一个blank。
|
|