bug-bash
[Top][All Lists]
Advanced

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

Re: Is direxpand available yet (to fix dirspell)?


From: Chet Ramey
Subject: Re: Is direxpand available yet (to fix dirspell)?
Date: Wed, 09 Jan 2013 09:09:16 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/17.0 Thunderbird/17.0

On 1/8/13 5:38 PM, John Caruso wrote:
> In article <address@hidden>, 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    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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