Re: Empty strings disappear from array splice

2015-01-22 Thread marc . coiffier
Le mardi 20 janvier 2015 22:47:44 UTC+1, Greg Wooledge a écrit : > On Tue, Jan 20, 2015 at 01:39:02PM -0800, marc.coiff...@gmail.com wrote: > > 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 helpe

Re: Empty strings disappear from array splice

2015-01-22 Thread marc . coiffier
Le mercredi 21 janvier 2015 00:24:27 UTC+1, Eduardo A. Bustamante López a écrit  : > On Tue, Jan 20, 2015 at 01:39:02PM -0800, marc.coiff...@gmail.com 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 y

Re: Empty strings disappear from array splice

2015-01-20 Thread Eduardo A . Bustamante López
On Tue, Jan 20, 2015 at 01:39:02PM -0800, marc.coiff...@gmail.com 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 s

Re: Empty strings disappear from array splice

2015-01-20 Thread Greg Wooledge
On Tue, Jan 20, 2015 at 01:39:02PM -0800, marc.coiff...@gmail.com wrote: > 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 funct

Re: Empty strings disappear from array splice

2015-01-20 Thread marc . coiffier
> 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 help

Re: Empty strings disappear from array splice

2015-01-20 Thread Greg Wooledge
On Mon, Jan 19, 2015 at 03:22:36PM -0800, marc.coiff...@gmail.com wrote: > Here is the minimal code sample to reproduce the bug (present in version 4.2, > corrected in 4.3 as far as I can tell) : > > arr1=( "" "" ) > arr2=( "${arr1[@]:1}" ) Seems to be either a Debian-specific bug, or a bug

Empty strings disappear from array splice

2015-01-19 Thread marc . coiffier
Hello all, (This bug was found on a fresh Debian wheezy install) Here is the minimal code sample to reproduce the bug (present in version 4.2, corrected in 4.3 as far as I can tell) : arr1=( "" "" ) arr2=( "${arr1[@]:1}" ) if [ ${#arr2[@]} -eq 1 ]; then echo OK else echo Not OK