Re: Bash reference manual: shell parameter expansion examples

2024-02-23 Thread Chet Ramey
On 2/23/24 10:44 AM, James Weigle wrote: Hi! In the Bash reference manual, there are a series of examples of testing if a variable is null or unset: - Under *${parameter:-word}*, the usage is *${var-unset}*. - Under *${parameter:=word}*, the usage is *${var:=DEFAULT}*. - Under *${pa

Bash reference manual: shell parameter expansion examples

2024-02-23 Thread James Weigle
Hi! In the Bash reference manual, there are a series of examples of testing if a variable is null or unset: - Under *${parameter:-word}*, the usage is *${var-unset}*. - Under *${parameter:=word}*, the usage is *${var:=DEFAULT}*. - Under *${parameter:?word}*, the usage is *${var:?var is u