|
From: | Chet Ramey |
Subject: | Re: `set completion-ignore-case on' does not work well for the first word on command line |
Date: | Sat, 16 Feb 2008 16:21:03 -0500 |
User-agent: | Thunderbird 2.0.0.9 (Macintosh/20071031) |
Jian Wang wrote:
When using Bash, I often turn on the `completion-ignore-case' option of readline. It works fine for most cases but sometimes it does not work as expected when completing the first word on the command line. For example, there is a bash script ~/MyDir/Foo.sh, on command line, when I input ~/my and then press TAB, the word is completed as ~/myDir . Is that a bug?
It's not really a bug, since case-ignoring does not necessarily mean case-changing (this is usually called `case-preserving'). Readline uses what's found in the file system rather than preserving what the user typed, though, as you noticed when you tried to do word completion instead of command completion. It might be useful to emulate Readline's behavior while doing command word completion. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer Live Strong. No day but today. Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/
[Prev in Thread] | Current Thread | [Next in Thread] |