Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Bash and case sensivity

Bash and case sensivity
Thread Tools
Junior Member
Join Date: Nov 2003
Location: Falun, Sweden
Status: Offline
Reply With Quote
Mar 13, 2004, 10:28 AM
 
Hi all!
As OS X filesystem is't Case Sensitive but Case Preserving I would like to see bash's tab completion to work in the same way i.e:

I want to access folder /Games:
cd /g *presses tab and nothing happens*
cd /G *presses tab and see how the full folder name appear*

but "cd /games" work fine.

Anyone know if there's a setting for that (Iread through the man-page without success) or another way to fix it?

(sorry for my bad spelling)
iBook G4 800mhz 12", 640mb ram, 60gb hdd, AirPort Extreme, Internal Bluetooth with osx 10.3.2 Panther
Palm Tungsten|T, TI-OMAP 144 MHz, 512mb SD, Internal Bluetooth with Palm OS 5.0
     
Mac Elite
Join Date: Oct 2000
Location: Amboy Navada, Canadia.
Status: Offline
Reply With Quote
Mar 13, 2004, 01:10 PM
 
in terminal, type-
set complete = enhance

This insanity brought to you by:
The French CBC, driving antenna users mad since 1937.
     
cryon  (op)
Junior Member
Join Date: Nov 2003
Location: Falun, Sweden
Status: Offline
Reply With Quote
Mar 13, 2004, 06:40 PM
 
hmm, didn't work... thx anyways
iBook G4 800mhz 12", 640mb ram, 60gb hdd, AirPort Extreme, Internal Bluetooth with osx 10.3.2 Panther
Palm Tungsten|T, TI-OMAP 144 MHz, 512mb SD, Internal Bluetooth with Palm OS 5.0
     
Mac Elite
Join Date: Oct 2000
Location: Amboy Navada, Canadia.
Status: Offline
Reply With Quote
Mar 13, 2004, 10:58 PM
 
Ah, I guess you're not on TCSH ;-)

cd ~
pico .inputrc

and paste in

set completion-ignore-case on

This insanity brought to you by:
The French CBC, driving antenna users mad since 1937.
     
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status: Offline
Reply With Quote
Mar 14, 2004, 12:12 AM
 
Originally posted by yukon:
Ah, I guess you're not on TCSH ;-)

cd ~
pico .inputrc

and paste in

set completion-ignore-case on
**[APi]TheMan looks at title of thread Bash and case sensitivity**

I haven't tried this command, but since we're in bash wouldn't it be set -o? I was always confused by the plus/minus notation of the bash "set" command since they're opposite from IRC modes and chmod modes (in that -o turns an option on). Eh.

I could be wrong, but it's cool to know the bash equivalent to set complete=enhance.
(Last edited by [APi]TheMan; Mar 14, 2004 at 12:18 AM. )
"In Nomine Patris, Et Fili, Et Spiritus Sancti"

     
cryon  (op)
Junior Member
Join Date: Nov 2003
Location: Falun, Sweden
Status: Offline
Reply With Quote
Mar 14, 2004, 05:03 AM
 
Originally posted by yukon:
Ah, I guess you're not on TCSH ;-)

cd ~
pico .inputrc

and paste in

set completion-ignore-case on
THX!!!! worked perfectly!
iBook G4 800mhz 12", 640mb ram, 60gb hdd, AirPort Extreme, Internal Bluetooth with osx 10.3.2 Panther
Palm Tungsten|T, TI-OMAP 144 MHz, 512mb SD, Internal Bluetooth with Palm OS 5.0
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Mar 14, 2004, 07:16 PM
 
In case anyone's interested, while we're on the topic, another handy option I have in my .inputrc file:
set show-all-if-ambiguous on
That makes bash list all the possible matches instead of just beeping if there's more than one file that matches the letters you've typed. I think it used to do that in the previous versions' tcsh too.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
   
Thread Tools
Forum Links
Forum 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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:06 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2