bug-bash
[Top][All Lists]
Advanced

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

[PATCH] preserving case in casefold completion


From: Peder Stray
Subject: [PATCH] preserving case in casefold completion
Date: 17 Sep 2001 22:02:24 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

 NOTE: this is try 2, first post may have failed. anyway there was a bug
       in the first patch, this one has not.

If you use case folding completion, bash/readline often changes the case
of the word you try to complete even if there exist a possible
completion without changing case. Let's say you have two directories,
'Mail' and 'mail', the only two straring with '[Mm]a'. If you have typed
either 'Ma' or 'ma' and press TAB for completion you get either 'Mail'
or 'mail' depending on which of the direcories occur first in the
match_list (usually depending on witch of the two were returned first by
readdir). The fact that bash/readline is inconsistent in which
completion it uses, and that it changes case unnecessary, has lead me to
write a patch to fix the problem. enjoy.

-- 
[ IRL: Peder Stray                                  ]
[ "A new life awaits you in the off world colonies" ]

Attachment: bash-2.05-foldfix.patch
Description: casefold completion patch 2


reply via email to

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