GNU Info

Info Node: (zsh.info)Command Substitution

(zsh.info)Command Substitution


Next: Arithmetic Expansion Prev: Parameter Expansion Up: Expansion
Enter node , (file) or (file)node

Command Substitution
====================

A command enclosed in parentheses preceded by a dollar sign, like
`$(...)', or quoted with grave accents, like ``...`', is replaced with
its standard output, with any trailing newlines deleted.  If the
substitution is not enclosed in double quotes, the output is broken
into words using the IFS parameter.  The substitution `$(cat FOO)' may
be replaced by the equivalent but faster `$(<FOO)'.  In either case, if
the option GLOB_SUBST is set, the output is eligible for filename
generation.


automatically generated by info2www version 1.2.2.9