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

Non-POSIX friendly output from declare -f / typeset -f

2015-01-20 Thread Raphael Cohn
Hi, It seems with bash 4.3.30(1)-release (and probably others) that embedded functions are output with a leading 'function ' keyword when using declare -f / typeset -f. This is different to all other shells that support declare / typeset that I've tested (pdksh, mksh, Mac OS X ksh, which I think i

Re: Non-POSIX friendly output from declare -f / typeset -f

2015-01-20 Thread Chet Ramey
On 1/20/15 9:09 AM, Raphael Cohn wrote: > Hi, > > It seems with bash 4.3.30(1)-release (and probably others) that embedded > functions are output with a leading 'function ' keyword when using declare > -f / typeset -f. This is different to all other shells that support declare > / typeset that I'v

Re: Non-POSIX friendly output from declare -f / typeset -f

2015-01-20 Thread Raphael Cohn
Chet, Thank you. I'll look at a regex hack-up... Raph On 20 January 2015 at 15:58, Chet Ramey wrote: > On 1/20/15 9:09 AM, Raphael Cohn wrote: > > Hi, > > > > It seems with bash 4.3.30(1)-release (and probably others) that embedded > > functions are output with a leading 'function ' keyword wh

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