[PATCH] Readline not being able to handle long lines

2016-11-27 Thread Mihail Konev
Configuration Information: OS: Happens both under Linux and MSYS2 (i.e. Cygwin), both 32 and 64 bit Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' \ -DCONF_MACHTYPE='x86_64-unknown-linux-gnu' -DCONF_VENDOR='unknown' \

Re: [PATCH] Readline not being able to handle long lines

2016-11-27 Thread Mihail Konev
Oh, and for lib/readline, Please Use Git Submodules. See: $ man git-tag $ man git-bisect $ man git-submodule

bash 4.3 completion leak

2016-11-28 Thread Mihail Konev
When bash 4.3 is ran in a terminal emulator, and file completions gathering is in progress, and the emulator is forcefully closed, bash process wouldn't terminate. Instead, it would forever leak memory and cpu. Sorry but I'm not going to bisect this. Ever.

Re: [PATCH] Readline not being able to handle long lines

2016-11-28 Thread Mihail Konev
On Mon, Nov 28, 2016 at 02:02:53PM -0800, Chet Ramey wrote: > On 11/27/16 2:33 PM, Mihail Konev wrote: > > Configuration Information: > > OS: Happens both under Linux and MSYS2 (i.e. Cygwin), both 32 and 64 bit > > I can't reproduce this with any recent version of bash.

Re: bash 4.3 completion leak

2016-11-28 Thread Mihail Konev
On Mon, Nov 28, 2016 at 01:39:29PM -0800, Chet Ramey wrote: > On 11/28/16 5:04 AM, Mihail Konev wrote: > > When bash 4.3 is ran in a terminal emulator, and file completions > > gathering is in progress, and the emulator is forcefully closed, > > bash process wouldn't

Re: [PATCH] Readline not being able to handle long lines

2016-11-29 Thread Mihail Konev
On Tue, Nov 29, 2016 at 12:47:26PM +0500, Mihail Konev wrote: > On Tue, Nov 29, 2016 at 08:27:00AM +0500, Mihail Konev wrote: > > Msys2 on windows, at least, should do it without a problem. > > Tried both it (bash 4.3.46) and arch linux in qemu (bash 4.3.46). >

Re: [PATCH] Readline not being able to handle long lines

2016-11-29 Thread Mihail Konev
On Tue, Nov 29, 2016 at 08:27:00AM +0500, Mihail Konev wrote: > Msys2 on windows, at least, should do it without a problem. Tried both it (bash 4.3.46) and arch linux in qemu (bash 4.3.46). Neither reproduced. Nevertheless, MSYS2 was exhibiting the bug all the time, most likely, with bash 4.3

Re: [PATCH] Readline not being able to handle long lines

2016-11-29 Thread Mihail Konev
On Tue, Nov 29, 2016 at 01:27:26PM +0500, Mihail Konev wrote: > Buggy: > PS1='\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[35m\]$MSYSTEM\[\e[0m\] > \[\e[33m\]\w\[\e[0m\]\n\$ ' > Not a buggy one. It does not trigger the bug. > Buggy (replace the ^-sequences in the sec

Re: [PATCH] Readline not being able to handle long lines

2016-11-29 Thread Mihail Konev
On Tue, Nov 29, 2016 at 10:02:08AM -0500, Greg Wooledge wrote: > On Tue, Nov 29, 2016 at 02:14:11PM +0500, Mihail Konev wrote: > > > Buggy (replace the ^-sequences in the second line): > > > PS1="[\${PWD##*/}]\$ " # set the prompt > > > PS1="

Re: [PATCH] Readline not being able to handle long lines

2016-11-29 Thread Mihail Konev
Sorry for splitting a message into two. On Wed, Nov 30, 2016 at 07:34:25AM +0500, Mihail Konev wrote: > On Tue, Nov 29, 2016 at 10:02:08AM -0500, Greg Wooledge wrote: > > On Tue, Nov 29, 2016 at 02:14:11PM +0500, Mihail Konev wrote: > > > > Buggy (replace the ^-sequenc