redraw-current-line fails with multiline prompts

2016-02-12 Thread Hugh Davenport
Hey, Not sure this got through from my laptop as I couldn't get it to send using the bashbug utility. Cheers, Hugh Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DC

`${PARAMETER:OFFSET}' does not work for negative offset

2016-02-12 Thread Ulrich Windl
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc -I/home/abuild/rpmbuild/BUILD/bash-4.2 -L/home/abuild/rpmbuild/BUILD/bash-4.2/../readline-6.2 Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -D

Re: `${PARAMETER:OFFSET}' does not work for negative offset

2016-02-12 Thread Pierre Gaston
On Fri, Feb 12, 2016 at 10:22 AM, Ulrich Windl < ulrich.wi...@rz.uni-regensburg.de> wrote: > Configuration Information [Automatically generated, do not change]: > Machine: x86_64 > OS: linux-gnu > Compiler: gcc -I/home/abuild/rpmbuild/BUILD/bash-4.2 > -L/home/abuild/rpmbuild/BUILD/bash-4.2/../read

Re: `${PARAMETER:OFFSET}' does not work for negative offset

2016-02-12 Thread Greg Wooledge
On Fri, Feb 12, 2016 at 09:22:21AM +0100, Ulrich Windl wrote: > "X=ABC; echo ${X:-2}" outputs "ABC", and not "BC" When using a negative index/offset, you have to separate it from the colon so that it is not interpreted as a ${var:-default} substitution. There are many ways to write it: ${x

Antw: Re: `${PARAMETER:OFFSET}' does not work for negative offset

2016-02-12 Thread Ulrich Windl
I realized that ":-2" is ambiguous: Default value or substring? A SPC does disambiguate (now I know). I still wonder why the manual page does not change "${parameter:offset}" and "${parameter:offset:length}" to "${parameter: offset}" and "${parameter: offset:length}", respectively. Or change the

Re: Antw: Re: `${PARAMETER:OFFSET}' does not work for negative offset

2016-02-12 Thread Greg Wooledge
On Fri, Feb 12, 2016 at 02:45:23PM +0100, Ulrich Windl wrote: > I realized that ":-2" is ambiguous: Default value or substring? A SPC does > disambiguate (now I know). I still wonder why the manual page does not change > "${parameter:offset}" and "${parameter:offset:length}" to "${parameter: > o

Re: Bogus value of variable BASH

2016-02-12 Thread Chet Ramey
On 2/12/16 10:38 AM, David Hunt wrote: > I'm not trying to write scripts that rely on the value of BASH. I only > discoverd the discrepancy while investigating the potential usefulness > of various variables set by the shell. Perhaps I just don't get the > point of having the variable in the first

Re: Bogus value of variable BASH

2016-02-12 Thread David Hunt
I'm not trying to write scripts that rely on the value of BASH. I only discoverd the discrepancy while investigating the potential usefulness of various variables set by the shell. Perhaps I just don't get the point of having the variable in the first place. Also I'm not very fond of Ubuntu's poin