bug-bash
[Top][All Lists]
Advanced

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

Re: Why escape char `:' with `\' when auto completing filenames?


From: Chet Ramey
Subject: Re: Why escape char `:' with `\' when auto completing filenames?
Date: Thu, 10 Mar 2011 15:15:00 -0500
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7

On 2/20/11 10:11 PM, Clark J. Wang wrote:

> I just tried with a very simple ~/.bashrc:
> 
> COMP_WORDBREAKS=${COMP_WORDBREAKS//[:@]/}
> printf '%q\n' "$COMP_WORDBREAKS"
> 
> bind "set bell-style none"
> printf '%q\n' "$COMP_WORDBREAKS"
> 
> When bash starts, I can see:
> 
> $' \t\n"\'><=;|&('
> $'@ \t\n"\'><=;|&('
> bash-4.2#
> 
> And other bind command like bind "set completion-ignore-case on" can also
> reproduce.

This has to do with whether or not you run this command before readline
initializes.  It will be fixed in the next version of bash.

Chet

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



reply via email to

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