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