View previous topic :: View next topic |
Author |
Message |
PennyroyalFrog Apprentice
Joined: 07 Oct 2004 Posts: 194
|
Posted: Mon Jul 23, 2007 7:13 am Post subject: hidden files mixed in when listed in alphabetical order |
|
|
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 |
|
|
alex.blackbit Advocate
Joined: 26 Jul 2005 Posts: 2397
|
Posted: Mon Jul 23, 2007 10:17 am Post subject: |
|
|
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 |
|
|
PennyroyalFrog Apprentice
Joined: 07 Oct 2004 Posts: 194
|
Posted: Mon Jul 23, 2007 7:45 pm Post subject: |
|
|
No, I don't. _________________ Strike dear mistress, and cure his heart. Different colors made of tears. |
|
Back to top |
|
|
mkzelda n00b
Joined: 22 Aug 2004 Posts: 32
|
Posted: Mon Jul 23, 2007 7:50 pm Post subject: |
|
|
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 |
|
|
BlackEdder Advocate
Joined: 26 Apr 2004 Posts: 2588 Location: Dutch enclave in Egham, UK
|
|
Back to top |
|
|
PennyroyalFrog Apprentice
Joined: 07 Oct 2004 Posts: 194
|
Posted: Mon Jul 23, 2007 8:10 pm Post subject: |
|
|
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 |
|
|
mkzelda n00b
Joined: 22 Aug 2004 Posts: 32
|
Posted: Mon Jul 23, 2007 8:18 pm Post subject: |
|
|
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 |
|
|
|