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 20:37:40 -0500

On Wed, Jul 7, 2021, 7:55 PM <lisa-asket@perso.be> wrote:

>
>
> Things are clearer now.
>
>
>
> > Seriously, just replace the :- expansion with := and go on with your
> code.
> > It's the least intrusive change, and won't disturb your logic.
>
>
>
>  I executed
>
>
>
> echo "${parameter:-word}"; echo "${parameter}"
>
>
>
> and then
>
>
>
> echo "${parameter:=word}"; echo "${parameter}"
>
>
>
> It was to make the distinction clear.
>
>
>
> As I was in it, have also changed
>
>
>
> fdir=${fdir:-$PWD}
>
>
>
> to
>
>
>
> fdir=${fdir:=$PWD}
>
>
>
>


Ack!


reply via email to

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