# HG changeset patch # User Christophe Lincoln # Date 1389118179 -3600 # Node ID a8b2767870a7a24439d675fc104758af8385128a # Parent 05ac6fa128432268088ee8cdfd97530035575305 Fix listing last bug: ls is wrong but sort -n work diff -r 05ac6fa12843 -r a8b2767870a7 web/bugs.cgi --- a/web/bugs.cgi Tue Jan 07 18:59:47 2014 +0100 +++ b/web/bugs.cgi Tue Jan 07 19:09:39 2014 +0100 @@ -832,7 +832,7 @@ EOT # List last 3 bugs echo "
"
-		for lb in $(ls -r ${bugdir} | head -n 3)
+		for lb in $(ls ${bugdir} | sort -n | tail -n 3)
 		do
 			list_bug ${lb}
 		done