Re: Custom word completion, word splitting, bad behavior

2018-02-12 Thread Nick Patavalis
On Mon, Feb 12, 2018 at 6:33 PM, Chet Ramey wrote: > > Because, as I said in my original reply, readline understands how to > complete inside quoted strings. If point is after the `b', for instance, > and you hit TAB, readline scans back to the open quote and passes > "p/foo/a b" to the completion

Re: Unset array doesn't work

2018-02-12 Thread Nikolai Kondrashov
On 02/12/2018 04:26 PM, Chet Ramey wrote: On 2/12/18 1:41 AM, Nikolai Kondrashov wrote: Hi Chet, On 02/12/2018 01:31 AM, Chet Ramey wrote: On 2/11/18 1:06 PM, Nikolai Kondrashov wrote: Hi everyone, I think I'm hitting a bug in Bash 4.4.12 (on Debian Stable): at some point an "unset" of a g

Re: Custom word completion, word splitting, bad behavior

2018-02-12 Thread Chet Ramey
On 2/7/18 5:11 PM, Nick Patavalis wrote: > On the other hand, readline seems not to be able to complete something > like: > > ls /tm"p/foo/a b" > > (and I don't understand why), though this is true, regardless of > whether " is in COMP_WORDBREAKS or not. I *both* cases, the command line > is

Re: Feature request: PROMPT_COMMANDS array variable

2018-02-12 Thread Chet Ramey
On 1/23/18 1:23 PM, Daniel Colascione wrote: > Right now, PROMPT_COMMAND gives a shell command to run before displaying > the prompt. It's common these days to include in one's bash configuration > numerous packages from different sources that *all* want to run code at > PROMPT_COMMAND time. Can we

Re: Unset array doesn't work

2018-02-12 Thread Chet Ramey
On 2/12/18 1:41 AM, Nikolai Kondrashov wrote: > Hi Chet, > > On 02/12/2018 01:31 AM, Chet Ramey wrote: >> On 2/11/18 1:06 PM, Nikolai Kondrashov wrote: >>> Hi everyone, >>> >>> I think I'm hitting a bug in Bash 4.4.12 (on Debian Stable): at some point >>> an "unset" of a global array variable does

Re: Incorrectly wrapped long utf8 PS1

2018-02-12 Thread Chet Ramey
On 2/10/18 11:52 PM, galtge...@o2.pl wrote: > Bash Version: 4.4 > Patch Level: 12 > Release Status: release > > Description: > A detailed report is at > https://bugzilla.gnome.org/show_bug.cgi?id=787157. This report is from last September. Please try it with bash-4.4.19 (there is one p

Re: Unset array doesn't work

2018-02-12 Thread Nikolai Kondrashov
On 02/12/2018 10:03 AM, Clark Wang wrote: On Mon, Feb 12, 2018 at 3:23 PM, Nikolai Kondrashov mailto:spbn...@gmail.com>> wrote: Take a look at these links: - http://wiki.bash-hackers.org/commands/builtin/unset

Re: Unset array doesn't work

2018-02-12 Thread Clark Wang
On Mon, Feb 12, 2018 at 3:23 PM, Nikolai Kondrashov wrote: > >> Take a look at these links: >> >> - http://wiki.bash-hackers.org/commands/builtin/unset >> - http://www.fvue.nl/wiki/Bash:_Passing_variables_by_reference >> > > Thanks, Clark! However, I find it difficult to follow the explanatio