Bash Parameter and Variable Expansion: Difference between revisions
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
A dollar sign ($) that is NOT followed by an open parenthesis initiates parameter or variable expansion. The simplest case of parameter expansion is retrieving the parameter value: the associated value is retrieved by prefixing the parameter's number, character or name with $ or enclosing it in ${...}. | A dollar sign ($) that is NOT followed by an open parenthesis initiates parameter or variable expansion. The simplest case of parameter expansion is retrieving the parameter value: the associated value is retrieved by prefixing the parameter's number, character or name with $ or enclosing it in ${...}. | ||
=Difference between $ and ${...}= | |||
<font color=darkgray>TODO</font> |
Revision as of 21:11, 18 September 2019
Internal
Overview
A dollar sign ($) that is NOT followed by an open parenthesis initiates parameter or variable expansion. The simplest case of parameter expansion is retrieving the parameter value: the associated value is retrieved by prefixing the parameter's number, character or name with $ or enclosing it in ${...}.
Difference between $ and ${...}
TODO