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 :- oper
Hello,
The example on parameter expansion[1] should perhaps read :
$ echo ${v:-unset}
instead of :
$ echo ${v-unset}
Yes ? More context:
---8<---
${parameter:-word}
If parameter is unset or null, the expansion of word is substituted. Otherwise,
the value of parameter is substituted.
$ v=1