On Wed, 20 Aug 2014, Eric Blake wrote:
On 08/20/2014 07:05 AM, eckard.bra...@gmx.de wrote:
Not a bug.
Description:
Substring Expansion actually works different than manpage states,
namely:
"If offset evaluates to a number less than zero, the value is used as an
offset from
Hello,
I see.
My fault - thanks for the lesson... thought I had already used that at
a time, but can't remember for sure.
@Greg: The explanation does illustrate it very nice, as I regularly use
the ":-" - should have noticed that.
Thanks again, and kind regards
Eckard
Am Wed, 20 Aug 2014 07:50
On Wed, Aug 20, 2014 at 03:05:48PM +0200, eckard.bra...@gmx.de wrote:
> "If offset evaluates to a number less than zero, the value is used as
> an offset from the end of the value of parameter."
>
> Repeat-By:
> x="abcdef"; echo "${x:-2}"
> Expected: ef
> Got: abcdef
On Wed, 20 Aug 2014 15:05:48 +0200, eckard.bra...@gmx.de wrote:
> Description:
> Substring Expansion actually works different than manpage states,
> namely:
>
> "If offset evaluates to a number less than zero, the value is
> used as an offset from the end of the value of parameter."
>
On 08/20/2014 07:05 AM, eckard.bra...@gmx.de wrote:
Not a bug.
>
> Description:
> Substring Expansion actually works different than manpage states,
> namely:
>
> "If offset evaluates to a number less than zero, the value is used as
> an offset from the end of the value of paramete