Bash $() and ()

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

Internal

Overview

(...) executes the command into a subshell:

(ls -al)

If the command executes as such invokes exit, the calling shell does not exit.