|
| From: | Bill Gradwohl |
| Subject: | Re: [Help-bash] inconsistency in expansions |
| Date: | Mon, 7 May 2012 07:27:29 -0600 |
Actually I'm a bit confused now.
Why this doesn't work
${${#}}
Anyway as a work around these work.
${@:${#}:1}
or
${@:(-1):1}
or for your example
echo "${*%${@:(-1):1}}"
echo "${*%${@:${#}:1}}"
| [Prev in Thread] | Current Thread | [Next in Thread] |