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 >

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

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

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

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