[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Quoting
From: |
Greg Wooledge |
Subject: |
Re: Quoting |
Date: |
Wed, 28 Jul 2021 09:06:07 -0400 |
On Wed, Jul 28, 2021 at 01:29:45PM +0200, eduardo-chibas@caramail.com wrote:
> Is is adequate using the following
>
> : ${fdir:=${@:$#}}
>
> Or is the following better
>
> : ${fdir:="${@:$#}"}
Are you simply trying to put the *last* argument into a variable?
[[ $fdir ]] || fdir=${!#}
- Quoting, eduardo-chibas, 2021/07/28
- Re: Quoting,
Greg Wooledge <=
- Quoting, eduardo-chibas, 2021/07/28
- Quoting, eduardo-chibas, 2021/07/28