()
-
( list )
Placing a list of commands between parentheses causes a subshellenvironment to be created, and eachof the commands in list to be executed in that subshell. Since thelist is executed in a subshell, variable assignments do not remain ineffect after the subshell completes.
{}
-
{ list; }
Placing a list of commands between curly braces causes the list tobe executed in the current shell context. No subshell is created. The semicolon (or newline) following list is required.