Re: [Documentation] Parameter expansion: missing colon in example

2023-07-24 Thread Chet Ramey
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

[Documentation] Parameter expansion: missing colon in example

2023-07-21 Thread private--- via Bug reports for the GNU Bourne Again SHell
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