local -p outputs invalid declare -- -

2022-06-30 Thread Emanuele Torre
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -DDEFAULT_PATH_VALUE='/usr/local/sbin:/usr/local/bin:/usr/bin' -DSTANDARD_UTILS_PATH='/usr/bin' -DSYS_BASHRC='/etc/bash

Re: [PATCH] fix COMP_WORDS when completing an empty word

2022-06-30 Thread Lawrence Velázquez
On Mon, Jun 20, 2022, at 6:28 AM, n+b...@monade.li wrote: > From: Naïm Favier > > Currently, typing `cmd flag1 flag2` (note the two spaces), navigating > between the two spaces and hitting Tab produces > `COMP_WORDS=(cmd flag1 flag2)` without inserting an empty word between > flag1 and flag2. > >

Re: Bug: garbled history search when using "\e[K" is PS1

2022-06-30 Thread Andreas Schwab
On Jun 30 2022, Constantine Bytensky wrote: > 1. Make PS1="\[\e[K\]" CSI K clears the whole line, clobbering the display region controlled by readline, so that is not a valid use of control sequences. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552

Re: declare +attribute in help

2022-06-30 Thread Chet Ramey
On 6/29/22 2:50 PM, Dennis Williamson wrote: In help declare it says: Using `+' instead of `-' turns off the given attribute. In the Bash man page it says: Using `+' instead of `-' turns off the attribute instead, with the exceptions that +a and +A may not be used to destroy array

Bug: garbled history search when using "\e[K" is PS1

2022-06-30 Thread Constantine Bytensky
Hello, There is a bug when I use “Erase in Lin” "\e[K" char in my PS1 prompt. How to reproduce: 1. Make PS1="\[\e[K\]" 2. Press ^R to start history-search 3. Type a few chars to find history string (assuming history not empty) 4. Press Enter of End to apply history string Result: Incomplete his