On Tue, Feb 05, 2002 at 12:46:17AM +0800, Charles Jie wrote:
>Now let's see linux (for me, Mandrake 8.1):
>2. The 'ls' don't group directories/files into two part.
>   - If you code something to achieve it, you lose the COLORs.
>*3. Mutt's file browser - also mix up directories and files, which hurts
>   eyes.
>   - We also want an option to IGNORE the cases of file/folder names in
>     sorting.
>
>-> any patch can help?
>
>File system is everything. If we can not deal with it smoothly, life is
>tough.
>
>best regards,
>charlie
  That is true, if you can't interact with the filesystem, life
is tough.  Actually, things were sorted the way you're referring to
until recently.  The issue you're referring to isn't a Mandrake
issue, it's a GNU issue...with the new version of GNU ls, they are
finally observing the locale settings that they were supposed to be
observing from the beginning.  :)
  Anyway, without getting into a technical discussion about locale
settings and GNU ls...if you want ls to sort stuff "the old way", put
this into your shell startup file:

~/.cshrc (csh) or ~/.tcshrc (tcsh):
 setenv LC_COLLATE "posix"

~/.profile (sh) or ~/.bashrc (bash) or ~/.zprofile (zsh)
 export LC_COLLATE="posix"

  That will fix things with ls, and then if you combine that with the
patch someone suggested a few posts back in the message
<[EMAIL PROTECTED]>, that should make mutt
collate the same way.
  <klaxon>Note to people who have LC_ALL set</klaxon>: In case someone
else tries this; LC_ALL is not a "default" variable, it's an "override"
variable.  You must unset it before any of the "sub" LC_* variables will
have an effect.
  All of this talk of piping ls to sort, or aliasing it to find, is
giving me twitches.  :)

-- 
------------------------------------------------------------------------
 John Buttery

                 "Man, that Shaft is a bad mutha..."
                          "Shut yo' mouth!"
                  "I'm just talkin' 'bout Shaft..."

                                     (Web page temporarily unavailable)
------------------------------------------------------------------------
psst..."uncolor (body|header)"...  pretty please? :)

Reply via email to