[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
parameter expansion with `:` does not work
From: |
lisa-asket |
Subject: |
parameter expansion with `:` does not work |
Date: |
Thu, 8 Jul 2021 00:37:07 +0200 (CEST) |
>From: Dennis Williamson <dennistwilliamson@gmail.com>
>To: lisa-asket@perso.be
>Subject: Re: parameter expansion with `:` does not work
>Date: 08/07/2021 00:28:33 Europe/Paris
>Cc: bug-bash <bug-bash@gnu.org>
>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.
So you used `:` at the beginning and it worked?
- parameter expansion with `:` does not work, (continued)
Re: parameter expansion with `:` does not work, Chet Ramey, 2021/07/07
Re: parameter expansion with `:` does not work, Dennis Williamson, 2021/07/07
- parameter expansion with `:` does not work,
lisa-asket <=
Re: parameter expansion with `:` does not work, Greg Wooledge, 2021/07/07
parameter expansion with `:` does not work, lisa-asket, 2021/07/07
Re: parameter expansion with `:` does not work, Chet Ramey, 2021/07/07
parameter expansion with `:` does not work, lisa-asket, 2021/07/07
Re: parameter expansion with `:` does not work, Dennis Williamson, 2021/07/07
Re: parameter expansion with `:` does not work, Greg Wooledge, 2021/07/07
Re: parameter expansion with `:` does not work, Kerin Millar, 2021/07/07