bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: parameter expansion with `:` does not work


From: Dennis Williamson
Subject: Re: parameter expansion with `:` does not work
Date: Wed, 7 Jul 2021 17:28:33 -0500

On Wed, Jul 7, 2021, 4:50 PM <lisa-asket@perso.be> 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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]