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
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
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
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
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
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
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
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