Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
hidden files mixed in when listed in alphabetical order
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
PennyroyalFrog
Apprentice
Apprentice


Joined: 07 Oct 2004
Posts: 194

PostPosted: Mon Jul 23, 2007 7:13 am    Post subject: hidden files mixed in when listed in alphabetical order Reply with quote

I noticed now that I when I do "ls -al" that the files starting with a period are ordered in such a way that the period is overlooked and the files are printed in the order that the first character afterwards is. For example:

Code:

mouse
.mozilla
.mplayer
News
.nexuiz


It used to be that the hidden files were all first, followed by capital letters, etc. What made this change? I haven't tried this is a standard console, just the kde console program, konsole. I have noticed it in other programs as well, such as gimp and kasablanca. Is there an easy way to change it back? Thanks.
_________________
Strike dear mistress, and cure his heart. Different colors made of tears.


Last edited by PennyroyalFrog on Mon Jul 23, 2007 11:14 pm; edited 1 time in total
Back to top
View user's profile Send private message
alex.blackbit
Advocate
Advocate


Joined: 26 Jul 2005
Posts: 2397

PostPosted: Mon Jul 23, 2007 10:17 am    Post subject: Reply with quote

i only know that the option "-U" of ls causes that effect.
do you maybe have that in an alias for ls for some reason?
Back to top
View user's profile Send private message
PennyroyalFrog
Apprentice
Apprentice


Joined: 07 Oct 2004
Posts: 194

PostPosted: Mon Jul 23, 2007 7:45 pm    Post subject: Reply with quote

No, I don't.
_________________
Strike dear mistress, and cure his heart. Different colors made of tears.
Back to top
View user's profile Send private message
mkzelda
n00b
n00b


Joined: 22 Aug 2004
Posts: 32

PostPosted: Mon Jul 23, 2007 7:50 pm    Post subject: Reply with quote

This happened to me some time about 2 months ago and I still don't have the answer. Also, CAPITAL letters used to come before lowercase letters, and now they're sorted case insensitive. Non-alpha characters are ignored. For example:

Code:

$ ls
Wayne
wicked
_Widespread
.windows-label
_Words
Worthers


This has affected the ouput of sed commands, as it is unable to recognize case anymore.
Back to top
View user's profile Send private message
BlackEdder
Advocate
Advocate


Joined: 26 Apr 2004
Posts: 2588
Location: Dutch enclave in Egham, UK

PostPosted: Mon Jul 23, 2007 8:00 pm    Post subject: Reply with quote

This thread gives some more info, I think the default settings for locale have changed in an update:
https://forums.gentoo.org/viewtopic-t-554160-highlight-capital.html
Back to top
View user's profile Send private message
PennyroyalFrog
Apprentice
Apprentice


Joined: 07 Oct 2004
Posts: 194

PostPosted: Mon Jul 23, 2007 8:10 pm    Post subject: Reply with quote

Ah, thanks! I added LC_COLLATE=C to my /etc/env.d/02locale file and then env-update and source /etc/profile and it's back to the way it was before.
_________________
Strike dear mistress, and cure his heart. Different colors made of tears.
Back to top
View user's profile Send private message
mkzelda
n00b
n00b


Joined: 22 Aug 2004
Posts: 32

PostPosted: Mon Jul 23, 2007 8:18 pm    Post subject: Reply with quote

Ah thank you. I set this when I followed the UTF-8 guide(s), and I did that when K3b 1.x started warning me about having no LC set. So its been like this since whenever k3b 1.0 rc's hit unstable tree.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum