LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Learning Bash, potential bug or total misunderstanding regarding globbing. (https://www.linuxquestions.org/questions/linux-newbie-8/learning-bash-potential-bug-or-total-misunderstanding-regarding-globbing-702930/)

colucix 02-07-2009 02:10 PM

Quote:

Originally Posted by crispyleif (Post 3435444)
In curiousity, I ran over to the neighbour and tested her mac (bash v2.05) and the original command worked fine there.

[[:upper:]] works as a charm ! Thx :)
env LC_COLLATE=C ls -d [A-Z]* doesn't

Sorry but I don't know how MAC OS manages collation and locales. What is the output of locale on that machine?

norobro 02-07-2009 02:32 PM

By George I think I've got it!
Obviously, I interpreted the man page to mean that -d gave you a listing of the sub-directories under a directory a la my grep ^d.

Thanks much colucix.

Norm


All times are GMT -5. The time now is 07:41 PM.