Re: Memory leak in bash 4.3

2015-06-22 Thread Chet Ramey
> My hope was that the updated patch I'm about to send would be released > as bash43-040 in bash-4.3-patches/. Does that make sense, or am I > missing something obvious? Here's a corrected patch, and eventually this will be released as an official patch. Chet *** ../bash-4.3-patched/subst.c 2014

Re: Memory leak in bash 4.3

2015-06-22 Thread Jean Delvare
Hi Chet, On Mon, 22 Jun 2015 09:40:36 -0400, Chet Ramey wrote: > > My hope was that the updated patch I'm about to send would be released > > as bash43-040 in bash-4.3-patches/. Does that make sense, or am I > > missing something obvious? > > Here's a corrected patch, and eventually this will be

?:

2015-06-22 Thread isabella parakiss
In lib/readline/input.c line 108 return (_isatty (fd) ? long) (HANDLE) _get_osfhandle (fd)) & 3) == 3) ? 0); I think you mean return x ? y : z; Unfortunately I don't have a windows machine to test it... --- xoxo iza

Re: ?:

2015-06-22 Thread Andreas Schwab
isabella parakiss writes: > In lib/readline/input.c line 108 > return (_isatty (fd) ? long) (HANDLE) _get_osfhandle (fd)) & 3) > == 3) ? 0); Where did you find that? It doesn't occur in the official source. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 019

Re: ?:

2015-06-22 Thread Chet Ramey
On 6/22/15 10:42 AM, Andreas Schwab wrote: > isabella parakiss writes: > >> In lib/readline/input.c line 108 >> return (_isatty (fd) ? long) (HANDLE) _get_osfhandle (fd)) & 3) >> == 3) ? 0); > > Where did you find that? It doesn't occur in the official source. It's in the devel branch, p

Re: ?:

2015-06-22 Thread Chet Ramey
On 6/22/15 10:36 AM, isabella parakiss wrote: > In lib/readline/input.c line 108 > return (_isatty (fd) ? long) (HANDLE) _get_osfhandle (fd)) & 3) > == 3) ? 0); > I think you mean return x ? y : z; Yep, you're right. This is MinGW-specific code. -- ``The lyf so short, the craft so long to