>From: Dennis Williamson <[email protected]>
>To: [email protected]
>Subject: Re: parameter expansion with `:` does not work
>Date: 08/07/2021 00:28:33 Europe/Paris
>Cc: bug-bash <[email protected]>



>On Wed, Jul 7, 2021, 4:50 PM <[email protected]> wrote:


>Have noticed that parameter expansion with `:` does not work



>: ${fltype:-"texi,org"}  # alternative to `fltype=`

 



>$ unset foo

>$ : ${foo:-bar}

>$ echo "$foo"



>$ : ${foo:=bar}

>$ echo "$foo"

>bar



>The first form is a substitution and the second form is an assignment.



So you used `:` at the beginning and it worked?


Reply via email to