![]() |
Hmm, you know what? At this point, an extra 9 chars which make a script work for both case-sensitive and case-insensitive filesystems? Fine, it's worth it. Let's not discuss it any further.
:) [kidding] Quote:
-- Do you use Adobe Products? (Creative Suite, etc.) I've read they bug-out on case sensitive filesystems. Then again, it's not 100% clear that's what you have. [Maybe start a new thread for this... i'm not sure.] |
Quote:
Did you see my (many) edits in the last post? I definitely don't have a case-sensitive system, but passing the 'nocaseglob' option to bash gets me the behaviour you have (i.e. bash is case-sensitive by default). Looks like 'nocaseglob' could be key... |
Quote:
Code:
$ shopt |grep glob<sigh> i hate unix. :D -- You're right, this one's more universal: for i in *.[Tt][Ee][Xx]; do [ -f "${i%.*}".pdf ] && ls "${i%.*}".[Pp][Dd][Ff]; done [now i have to find that thread at ars technica where i got mislead last spring... it's probably locked. ;-) ] |
Quote:
Quote:
|
Quote:
Code:
bind 'set completion-ignore-case'The trick is to remember that you've done it. Unix ought to have a "list all my customizations" command. Hmm... that shouldn't be too hard. Write a script to capture all settable options to a file: alias -p bind -pvs enable -p shopt -p set Generate the same file from a virgin install, and keep it around. (Such a file could be part of a virgin install. Or log in as Guest and run the script.) Use diff to find all the ways you're different. You'd probably also want to have a list of ignorable differences (like the value of $USER or $HOME). No... I will resist. (Another reason to hate unix -- it sucks you in by making everything seem so doable.) |
Quote:
bind 'set completion-ignore-case on' Not sure if that trailing "on" is redundant or what. [?] Can't remember where i dug that up. [i'd like to find a good tutorial on bind.] Quote:
|
Quote:
Quote:
|
| All times are GMT -5. The time now is 10:17 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.