On 1/8/13 5:38 PM, John Caruso wrote: > In article <mailman.16971.1357683797.855.bug-b...@gnu.org>, Chet Ramey wrote: >> On 1/8/13 5:18 PM, John Caruso wrote: >>> In bash 4.1, if you do "shopt +s dirspell" and type "ls /ect/passwd<TAB>" >>> it's corrected to "ls /etc/passwd". In bash 4.2 with dirspell enabled, >>> the correction doesn't happen. >>> [...] >> >> That functionality came in as part of bash-4.2 patch 29. Please try it >> and let me know what it's missing. > > Thanks for the quick reply. I just tested that patch, and it does indeed > fix the bug. The distribution I'm using is only up to version 4.2.24, > unfortunately, so I'll have to wait to get a working dirspell option > again under bash 4.2. > > So just to verify: there's no way in bash 4.2.0 through 4.2.28 to make > dirspell work correctly? The only fix is the direxpand option?
Yes. Through 4.2.28, the dirspell option will cause the filename to be rewritten with spelling correction internally, but the corrected filename will not be rewritten on the command line. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/