bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bash's declare -p HISTIGNORE brings bash to a halt! Why?


From: Chet Ramey
Subject: Re: Bash's declare -p HISTIGNORE brings bash to a halt! Why?
Date: Sat, 11 Jan 2014 20:55:02 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

On 1/11/14, 8:48 PM, Tim Friske wrote:
> Hi Chet,
> 
> apparently bash does not recognize the ":" colon characters in POSIX
> character classes when assigned to the "HISTIGNORE" variable.
> 
> I tried to set the "HISTIGNORE" variable directly from within a
> non-login, interactive session. But still I cannot convince bash's
> history with the following definitions:
> 
> 1.) HISTIGNORE="+([[:word:]])"

This actually works fine for me, as long as extglob is set.

> 2.) HISTIGNORE="+([^[:space:]])"

As does this.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]