[19553] in Athena Bugs

home help back first fref pref prev next nref lref last post

sun4 9.0.14: sort

daemon@ATHENA.MIT.EDU (Laura Baldwin)
Tue Aug 7 10:24:29 2001

Message-Id: <200108071423.KAA03067@geskekelud.mit.edu>
To: bugs@MIT.EDU
Date: Tue, 07 Aug 2001 10:23:55 -0400
From: Laura Baldwin <boojum@MIT.EDU>

System name:		geskekelud.mit.edu
Type and version:	SPARC/5 9.0.14 (with mkserv)
Display type:		cgsix

Shell:			/bin/athena/tcsh
Window manager:		sawfish

What were you trying to do?
	There's an OLC stock answer that lists the following:

du -sk * .??* | sort +6 -1 -nr | more

to list files/directories by size.  This used to work.  Okay,
I'm not sure *why* it used to work (Brett wrote it), as the man page
seems to suggest that this sorts from column 6 on to column 1, but I'm
a little fuzzy on the sort man page.  Now, it hangs indefinitely, and
this appears to be the case for all sorts in which the - number is
smaller than the + number.  


What's wrong:
	Well, regardless of whether the syntax is correct, hanging
	is sort of unfortunate.

What should have happened:
	It should sorted the files large to small.  

Please describe any relevant documentation references:
	It still works on linux (both old and new).  on an SGI, it
	doesn't hang, but it doesn't sort in the order it used to
	(large to small).  
	 
	 Using sort -nr without the numeric arguments appears to give
	 the desired effect, so that's a workaround and a fix for the
	 OLC stock answer, but I still don't like hanging forever. :) 




home help back first fref pref prev next nref lref last post