bug-fileutils
[Top][All Lists]
Advanced

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

Re: Sorting Issues


From: Bob Proulx
Subject: Re: Sorting Issues
Date: Thu, 25 Apr 2002 23:34:15 -0600

Thank you for your report.  But you have hit a common RH problem not a
sort problem.  Here is a standard reply.

Bob

Please check out the FAQ section on sort.

  
http://www.gnu.org/software/fileutils/doc/faq/#Sort%20does%20not%20sorting%20in%20normal%20order!

This is due to the fact that you or your vendor have set environment
variables that direct the program to use locale specific sorting
tables which do not sort as you expect. You or your vendor have
probably set environment variables like LANG, LC_ALL, or LANG to
en_US. There appears to be a problem with that table on some systems
which is not part of the GNU program but part of your vendor's system
release.

Unset them, and then set LC_ALL to POSIX. 

  # If you use bash or some other Bourne-based shell,
  export LC_ALL=POSIX

  # If you use a C-shell,
  setenv LC_ALL POSIX

and it will then work the way you expect because it will use a
different set of tables.

See the standards documentation for more information on the locale
variables with regards to sort.

  http://www.unix-systems.org/single_unix_specification_v2/xcu/sort.html


> I am using RedHat 7.2 and recently upgraded my packages to use 
> fileutils-4.1.4.  The sort version is 2.0.14 and the ls version is 1.5i1.
> 
> In both cases, they are no longer sorting via ASCII value, and are
> sorting in a case insensitive fashion.  While there is an option on
> sort to sort case-insensitive, there is no option to make it a case
> sensitive sort.  
> 
> The info pages and man pages both indicate the sorts are alleged to
> be ASCII, as well.
> 
> I see nothing in my environment that should modify sort order, my
> environment is enclosed:
> 
> PWD=/home/james
> TZ=PST8PDT
> XAUTHORITY=/home/james/.Xauthority
> WINDOWID=37748750
> VENDOR=intel
> HOSTNAME=annapurna.sagarmatha.com
> novi=false
> PVM_RSH=/usr/bin/rsh
> QTDIR=/usr/lib/qt-2.3.1
> LESSOPEN=|/usr/bin/lesspipe.sh %s
> BLOCKSIZE=1k
> KDEDIR=/usr
> USER=james
> LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:
> MACHTYPE=i386
> MAIL=/var/mail/james
> LANG=en_US
> HOST=annapurna.sagarmatha.com
> DISPLAY=:0.0
> LOGNAME=james
> SHLVL=8
> GROUP=james
> _=/home/james/bin/elmvi
> SHELL=/bin/csh
> HOSTTYPE=i386-linux
> CVSROOT=/home/src
> OSTYPE=linux
> LAMHELPFILE=/etc/lam/lam-helpfile
> PVM_ROOT=/usr/share/pvm3
> HOME=/home/james
> TERM=xterm
> SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
> PATH=.:/home/james/bin:/usr/local/bin:/usr/kerberos/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/bin/X11:/home/james/ppp:/usr/sbin:/sbin
> -- 
> James C. Armstrong, Jr. |
> address@hidden    | It's
> 
> _______________________________________________
> Bug-fileutils mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-fileutils



reply via email to

[Prev in Thread] Current Thread [Next in Thread]