[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Changes to HISTIGNORE are not honored when changed via a reference?
From: |
Chet Ramey |
Subject: |
Re: Changes to HISTIGNORE are not honored when changed via a reference? |
Date: |
Mon, 15 Jun 2020 09:30:38 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 |
On 6/13/20 6:17 PM, James D. Lin wrote:
> Bash Version: 5.0
> Patch Level: 3
> Release Status: release
>
> Description:
> If I modify the `HISTIGNORE` variable indirectly through a reference (e.g.
> via `declare -n` or `local -n`), `HISTIGNORE` reflects the change, but the
> change isn't honored.
Thanks for the report. Bash checks whether `historyref' is the special
variable with side effects, not the target of the nameref.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/