LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Case insensitive (https://www.linuxquestions.org/questions/linux-newbie-8/case-insensitive-4175502512/)

Sharath Ravi 04-21-2014 11:40 PM

Case insensitive
 
Hi All,

Can Linux (centOs 6) made case insensitive.. if yes can some1 please explain me how it can b done.

Thanks in advance.

Automatic 04-22-2014 12:49 AM

Err... no?

That'd require literally modifying and recompiling every program out there, what about programs that use capitalization to specify the negative? Such as useradd (-m = create directory, -M = don't create directory). What about programs that rely on capitals? Etc...

You could maybe run some hackery on the VFS to get a case insensitive file table, but, far from a good idea.

kooru 04-22-2014 01:20 AM

But why?

Automatic 04-22-2014 01:34 AM

Quote:

Originally Posted by kooru (Post 5156889)
But why?

I'm going to assume you're asking OP that, not me, but, for the sake of answering OP when he inevitably asks that:-
Code:

if(args[0] == "-m") {
//do dat
} else if(args[0] == "-M") {
//do dis
}

Obviously you wouldn't code like that, but, it's a simple method to understand. It's impossible to programmatically change all of that, especially without recomiling all the programs.

kooru 04-22-2014 01:49 AM

Hi Automatic,

my "but why" was for the author of this topic :)

Sharath Ravi 04-22-2014 02:16 AM

kooru,

i have a apache server in which i have some images. while opening that file in windows box its says image not found. Reason is the file has a upper case letter in the name.So i need to rename all the files to lower case or make linux box case-insenstive.

For example
/var/www/html/content/LessonPlan_Master/147815/images/
b3487t5.jpg
B3487T5.jpg

Where as in windows it works fine.

grail 04-22-2014 02:23 AM

So in other words, absolutely nothing to do with Linux but actually your web page and apache setup. You might try asking your actual question next time and you will get a much swifter response.

I will leave this for the apache / html gurus to explain what you need.

colucix 04-22-2014 02:51 AM

Maybe this is of some help:
http://answers.oreilly.com/topic/108...s-with-apache/


All times are GMT -5. The time now is 05:20 AM.