help-bash
[Top][All Lists]
Advanced

[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=${!#}



reply via email to

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