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 ^-sequences in the second line): > > >

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="^[]0;\$PWD^G^M$PS1"# set the window title > > >

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

2016-11-29 Thread Greg Wooledge
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="^[]0;\$PWD^G^M$PS1"# set the window title > > > > Turns out this was the only one buggy. > So it was all the (mis-) g

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 second line): > PS1="[\${PWD##*/}]\$ "

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

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). > Neither reproduced. > > Nevertheles

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. > Just reproduced it on l

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

2016-11-28 Thread Chet Ramey
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. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vi

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

[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' \