Re: Substring Expansion does not work as intended

2014-08-20 Thread Chris F.A. Johnson
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

Re: Substring Expansion does not work as intended

2014-08-20 Thread Eckard Brauer
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

Re: Substring Expansion does not work as intended

2014-08-20 Thread Greg Wooledge
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

Re: Substring Expansion does not work as intended

2014-08-20 Thread Davide Brini
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." >

Re: Substring Expansion does not work as intended

2014-08-20 Thread Eric Blake
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

Substring Expansion does not work as intended

2014-08-20 Thread eckard . brauer
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: x86_64-pc-linux-gnu-gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/s

Bash-4.3 Official Patch 24

2014-08-20 Thread Chet Ramey
BASH PATCH REPORT = Bash-Release: 4.3 Patch-ID: bash43-024 Bug-Reported-by:Corentin Peuvrel Bug-Reference-ID: <53ce9e5d.6050...@pom-monitoring.com> Bug-Reference-URL: http://lists.gnu.org/archiv

Bash-4.3 Official Patch 23

2014-08-20 Thread Chet Ramey
BASH PATCH REPORT = Bash-Release: 4.3 Patch-ID: bash43-023 Bug-Reported-by:Tim Friske Bug-Reference-ID: Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2014-06/msg00056.html Bug