On 1/11/14, 7:52 PM, Tim Friske wrote:
> Hi Chet,
>
> hmm ... I simplified the pattern to "+([^[:space:]])". It works on
> when I let bash expand files but it does not keep bash from adding
> "word" commands such as "cd", "pwd", etc. My history related settings
> are as follows:
>
> shopt -s extglob
>
> declare -x HISTIGNORE="+([^[:space:]])"
If you want to ignore commands that don't contain a space anywhere in them,
do something like this:
HISTIGNORE='!(*[[:space:]]*)'
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU [email protected] http://cnswww.cns.cwru.edu/~chet/