- 论坛徽章:
- 0
|
回复 1# ddvv
(list) list is executed in a subshell environment (see COMMAND EXECUTION ENVIRONMENT below). Variable assign-
ments and builtin commands that affect the shell窶冱 environment do not remain in effect after the command
completes. The return status is the exit status of list.
{ list; }
list is simply executed in the current shell environment. list must be terminated with a newline or
semicolon. This is known as a group command. The return status is the exit status of list. Note that
unlike the metacharacters ( and ), { and } are reserved words and must occur where a reserved word is
permitted to be recognized. Since they do not cause a word break, they must be separated from list by
whitespace. |
|