LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-19-2010, 12:07 PM   #16
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,063

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381

Quote:
Originally Posted by schneidz View Post
i never use capitals either (its just an extraneous keystroke).

when i was in college we created a my-shell program in lab.
I have no idea what college did you go to. In mine, for sure, I wouldn't have obtained a degree if I hadn't respected the basic orthographic rules of my mother language. Just like you can't bypass the rules in C either.

Quote:
case-insensitivity can theoretically be done with something like tr [A-Z] [a-z] but it would likely hinder more than it would help.
True case insensitivity is simply not possible without hacking at core level, starting with glibc. Then you would need to patch 99% of the user land applications so they don't get confused.

You can try to stay caseless for your personal files, but you need to have in mind always that your system doesn't think that way. You will understand that the day you need to edit /etc/X11/xorg.conf but you edited /etc/x11/xorg.conf, for example. Lots of time will be wasted just because you refuse to learn a basic rule.

I personally don't care if you or the OP do or not acknowledge this. I am just exposing the facts, and facts are that all the unix clones (including linux) are case sensitive to the bone. It's nothing that a shell or a single program or tool can fix without massively patching all the components of your system

Last edited by i92guboj; 02-19-2010 at 12:09 PM.
 
Old 02-19-2010, 12:11 PM   #17
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,027

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
^ damn, sorry i offended you.
 
Old 02-19-2010, 12:18 PM   #18
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Quote:
Originally Posted by i92guboj
echo 'set completion-ignore-case on' > ~/.inputrc
Not to get off topic here hopefully, but @ Jęsus -- since you mentioned ~/.inputrc I want to ask:

When I look into my /etc/profile file, wherein the INPUTRC environment variable is set, there is a test like:

if ~/.inputrc exists, use that; else use /etc/inputrc

So, the question: is there a provision in readline whereby it will use BOTH files? Or, if I want to have some special stuff in my ~/.inputrc, then I should first copy /etc/inputrc to ~/.inputrc because readline can/will only use one or the other file?

The readline man page didn't say whether multiple files would be considered.

Cheers,
Sasha
 
Old 02-19-2010, 12:48 PM   #19
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,063

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
Hi, Sasha.

Quote:
Originally Posted by GrapefruiTgirl View Post
Not to get off topic here hopefully, but @ Jęsus -- since you mentioned ~/.inputrc I want to ask:

When I look into my /etc/profile file, wherein the INPUTRC environment variable is set, there is a test like:

if ~/.inputrc exists, use that; else use /etc/inputrc
That's unnecessary (redundant) anyway. Since it's the default behavior of readline itself.

Quote:
So, the question: is there a provision in readline whereby it will use BOTH files? Or, if I want to have some special stuff in my ~/.inputrc, then I should first copy /etc/inputrc to ~/.inputrc because readline can/will only use one or the other file?
As far as I know, the first file that's found will be used. The precedence order gives the ~/.inputrc file the highest priority, over /etc/inputrc.

However, you can use "$include /etc/inputrc" in your ~/.inputrc file, so you don't need to copy the file, and you will stay in sync with whatever the system updates put there.
 
1 members found this post helpful.
Old 02-19-2010, 12:50 PM   #20
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Quote:
However, you can use "$include /etc/inputrc" in your ~/.inputrc file
Ahh! That's just the perfect thing right there. Thank you!

Sasha
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash scripting questions: Geminias Programming 3 08-06-2007 09:58 AM
Bash script questions. ArthurHuang Programming 6 03-20-2007 11:59 PM
bash questions xeon123 Linux - General 2 11-23-2006 06:00 AM
Simple Bash Questions RAdams Programming 8 08-23-2006 10:48 AM
Bash scripting questions irfanhab Programming 2 06-07-2004 01:13 PM


All times are GMT -5. The time now is 03:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration