[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 07:47:52 +0200 (CEST) |
>From: Lawrence Velázquez <vq@larryv.me>
>To: lisa-asket@perso.be
>Subject: Re: parameter expansion with `:` does not work
>Date: 08/07/2021 05:23:48 Europe/Paris
>Cc: bug-bash@gnu.org
>> On Jul 7, 2021, at 10:38 PM, lisa-asket@perso.be wrote:
>>
>> Correct. How do others customarily use `${fdir:=$PWD}` ?
>The common idiom is
>: "${fdir:=$PWD}"
>The ':' utility is used because it does nothing, but its arguments
>are expanded as usual.
I understand Lawrence. This got me back to the `:` command I had referred to
in my post.
Thusly I will be using it
: "${fdir:=$PWD}"
- Re: 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, 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
- parameter expansion with `:` does not work, lisa-asket, 2021/07/07
- Re: parameter expansion with `:` does not work, Lawrence Velázquez, 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/08