[kwlug-disc] cd case insensitive? (NOT autocompletion)

unsolicited unsolicited at swiz.ca
Mon Sep 9 15:50:50 EDT 2013


Fair enough. I am making the assumption no duplicates are present. And 
I'm making the assumption that I'll remember to not create duplicates.

md should at least throw a hissy fit at an attempt to create such. rd 
gets interesting though.

This is somewhat of a self-correcting problem I expect - it doesn't take 
long for one to get miffed at a missing file, and have a D'OH moment of 
looking for a different case form.

(Been there, done that.)

On 13-09-09 03:38 PM, Bob Jonkman wrote:
> On 13-09-09 03:25 PM, William Park wrote:
>> On Mon, Sep 09, 2013 at 02:53:02PM -0400, unsolicited wrote:
>>> How do I make filename/directory matching case insensitive?
>>>
>>> Note, I am NOT talking about autocompletion. No tab pressing involved here.
>>>
>>> If I have directory /Data/Me, how do I make 'cd /data/me<enter>' do
>>> the expected?
>>
>> Short answer: you can't.
>>
>> Long answer: you have to write a script that will convert the cases for
>>      both your command argument and target directory name, and do the
>>      match.  For "vfat" and the likes, there is mount option that will
>>      convert the case automatically.
>>
>
> And you have to find a way work with duplicates, eg. what happens where
> there is both a "/Data/Me" and a "/data/me" in filesystem?
>
> --Bob.
>
>
>
> _______________________________________________
> kwlug-disc mailing list
> kwlug-disc at kwlug.org
> http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org
>





More information about the kwlug-disc mailing list