bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Empty strings disappear from array splice


From: Eduardo A . Bustamante López
Subject: Re: Empty strings disappear from array splice
Date: Tue, 20 Jan 2015 17:24:16 -0600
User-agent: Mutt/1.5.23 (2014-03-12)

On Tue, Jan 20, 2015 at 01:39:02PM -0800, address@hidden wrote:
> > Seems to be either a Debian-specific bug, or a bug that was fixed in a
> > later patch than Debian is using.
> 
> Great ! Thank you for the quick response.
> 
> If you have time for a followup question, do you know who I should contact to 
> get these patches pushed to Debian ? I am writing a completion helper library 
> (based on parser combinators) and it needs this feature to function 
> correctly, so it would mean a lot to me if I could make it work 
> out-of-the-box on most distros.

address@hidden ~ % apt-cache show bash|grep ^Maintainer:
Maintainer: Matthias Klose <address@hidden>
Maintainer: Matthias Klose <address@hidden>

Also:

# debian unstable (sid)
address@hidden ~ % /bin/bash -c 'echo "$BASH_VERSION"; arr1=( "" "" ); arr2=( 
"address@hidden:1}" ); declare -p arr1 arr2' 
4.3.30(1)-release
declare -a arr1='([0]="" [1]="")'
declare -a arr2='([0]="")'

# debian stable (wheezy)
address@hidden ~ % /bin/bash -c 'echo "$BASH_VERSION"; arr1=( "" "" ); arr2=( 
"address@hidden:1}" ); declare -p arr1 arr2'
4.2.37(1)-release
declare -a arr1='([0]="" [1]="")'
declare -a arr2='()'

And:

#                         v- you want this
address@hidden ~ % w3m -dump 
'https://bugs.debian.org/cgi-bin/pkgreport.cgi?dist=stable;package=bash' | head
Debian Bug report logs: Bugs in package bash (version 4.2+dfsg-0.1+deb7u3) in
stable

Maintainers for bash are Matthias Klose <address@hidden>.

You may want to refer to the following packages that are part of the same
source: bash-builtins, bash-doc, bash-static.

You might like to refer to the bash package page, to the Package Tracking
System, or to the source package src:bash's bug page.


Please do consider that it's highly likely that you won't get them to update
that for you, since that fix could break stuff, and that's the whole point of
stable, to not break things. Use a work-around, that's the sanest way.

A for loop, for example.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]