[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bash-bug
Subject:    Re: [Documentation] Parameter expansion: missing colon in example
From:       Chet Ramey <chet.ramey () case ! edu>
Date:       2023-07-24 15:19:47
Message-ID: fb3e9b37-43b0-6041-3c37-0e0f5a5e7f8d () case ! edu
[Download RAW message or body]

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/


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic