Re: extra \1 in declare -p

2015-07-22 Thread Chet Ramey
On 7/20/15 2:23 PM, isabella parakiss wrote: > Hi, about this bug: > http://lists.gnu.org/archive/html/bug-bash/2003-03/msg00093.html > > The fix was to add this in lib/sh/shquote.c > else if (c == CTLESC || c == CTLNUL) > *r++ = CTLESC; > > I think the fix it was applied twice, it

Re: [Help-bash] extdebug not providing expected results with declare -F

2015-07-22 Thread Greg Wooledge
On Wed, Jul 22, 2015 at 07:26:54AM -0700, Michael Convey wrote: > According to man bash: > > The -F option to declare or typeset will list the function names only (and > optionally the > ?? > source file and line number, if the extdebug shell option is enabled). I have no comment on the extde

cannot declare local variables if they're readonly

2015-07-22 Thread isabella parakiss
>From variables.c The test against old_var's context level is to disallow local copies of readonly global variables (since I believe that this could be a security hole). Can you please explain how that can be a security hole? $ readonly wtf; fn (

Segfault in save_bash_input. Array index is out of a range.

2015-07-22 Thread Alexey Makhalov
I have met situation when nfd(returned by fcntl) is 217, but nbuffers is only 25 if (buffers[nfd]) { /* What's this? A stray buffer without an associated open file descriptor? Free up the buffer and report the error. */ internal_error (_("save_bash_input: buffer alread