Re: dabbrev-expand completions are sorted

2017-03-15 Thread Roee Bar
Also, not as serious as the bug below, if you have 'set show-all-if-ambiguous on’ on your .inputrc, it shows all matching on dabbrev-expand as well (I don’t think it should). > On Mar 15, 2017, at 10:56, Roee Bar wrote: > > Thanks Chet. > > I found out it happens only when I have this one is

Re: Issues in option handling (Was: break no longer breaks out of loops defined in an outer context)

2017-03-15 Thread Chet Ramey
On 3/7/17 7:23 AM, Stephane Chazelas wrote: > See also: > > $ POSIXLY_CORRECT=1 bash -c 'set +o posix; set +o' | grep posix > set +o posix > $ POSIXLY_CORRECT=1 bash +o posix -c 'set +o' | grep posix > set -o posix > > (not a regression, already in 4.3) > > I'd expect explicit command line opti

Re: dabbrev-expand completions are sorted

2017-03-15 Thread Roee Bar
Thanks Chet. I found out it happens only when I have this one is in my .inputrc: set completion-ignore-case on Regards, Roee > On Mar 15, 2017, at 04:50, Chet Ramey wrote: > > On 3/15/17 1:54 AM, r...@arista.com wrote: > >> Bash Version: 4.3 >> Patch Level: 42 >> Release Status: release >> >

Re: exiting i-search using end-of-line on multi-line prompt in multi-byte locale

2017-03-15 Thread Chet Ramey
On 3/12/17 6:57 PM, Grisha Levit wrote: > As a minimal example: > > LC_CTYPE=en_US.UTF-8 > PS1='\n\[\e[0m\]' > > # put something into history: > > echo foo > > # ^R search for something that should put point in the middle of the string > > (reverse-i-search)`fo': echo foo > > # attempt to exi

Re: exiting i-search using end-of-line on multi-line prompt in multi-byte locale

2017-03-15 Thread Chet Ramey
On 3/12/17 6:57 PM, Grisha Levit wrote: > Also it seems that the prompt is re-drawn after the text? For > example, setting the prompt as: > > PS1='\n\[\e[0m\e[K\]' > > and repeating the above puts point in the middle of a blank line. Readline redraws the prompt because in the general case it n

Re: dabbrev-expand completions are sorted

2017-03-15 Thread Chet Ramey
On 3/15/17 1:54 AM, r...@arista.com wrote: > Bash Version: 4.3 > Patch Level: 42 > Release Status: release > > Description: > dabbrev-expand supposed to menu complete using history where most > recent entries are presented first. However, it seems like the entries are > sorted. > Th

dabbrev-expand completions are sorted

2017-03-15 Thread roee
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-redhat-linux-gnu' -DCONF_VENDOR='redhat' -DLOCALEDIR='/usr/share/locale'