Re: [Documentation] Parameter expansion: missing colon in example
From:
Chet Ramey
Subject:
Re: [Documentation] Parameter expansion: missing colon in example
Date:
Mon, 24 Jul 2023 11:19:47 -0400
User-agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.13.0
On 7/21/23 2:37 PM, private--- via Bug reports for the GNU Bourne Again
SHell wrote:
Hello,
The example on parameter expansion[1] should perhaps read :
$ echo ${v:-unset}
instead of :
$ echo ${v-unset}
There should probably be more examples showing the differences between the
- and :- operators with different values of v, so I'll add some.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/