 |
 |
Bash and case sensivity
|
 |
|
 |
|
Junior Member
Join Date: Nov 2003
Location: Falun, Sweden
Status:
Offline
|
|
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
|
|
in terminal, type-
set complete = enhance
|

This insanity brought to you by:
The French CBC, driving antenna users mad since 1937.
|
| |
|
|
|
 |
|
 |
|
Junior Member
Join Date: Nov 2003
Location: Falun, Sweden
Status:
Offline
|
|
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
|
|
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
|
|
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"
|
| |
|
|
|
 |
|
 |
|
Junior Member
Join Date: Nov 2003
Location: Falun, Sweden
Status:
Offline
|
|
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
|
|
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'."
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|