[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ls'ing dirs before files



on Sat, 27 Jul 2002 07:48:24PM -0600, Bob Proulx insinuated:
> > and sort also doesn't deal with the interspersing of dot-files with
> > non-dot-files, which /bin/ls started doing along with interspersing
> > directories and files ...
> > 
> > not a problem over here, just a curiousity.  anyone let us know if you
> > figure it out.
> 
> It sounds like you are using a specific locale, which you probably
> are, which specifies that characters like '.' are not significant in
> the name.  That is often called dictionary order.  Use 'locale' to see
> what locales you are set.
> 
>   locale
> 
> Try setting LC_ALL=POSIX for a test and you will see the standard
> behavior.  For a test you don't have to do it permanently, just for
> that one command.
> 
>   LC_ALL=POSIX ls -a

hey, awesome!  thanks!

</nori>

-- 
    .~.      nori @ sccs.swarthmore.edu 
    /V\  http://www.sccs.swarthmore.edu/~nori/jnl/daily.html
   // \\          @ maenad.net
  /(   )\       www.maenad.net
   ^`~'^

Attachment: pgpSFdMIzdfc6.pgp
Description: PGP signature


Reply to: