]> Zhao Yanbai Git Server - minix.git/commitdiff
fix packman sort col, and make sort case-insensitive
authorBen Gras <ben@minix3.org>
Mon, 2 Apr 2007 16:23:55 +0000 (16:23 +0000)
committerBen Gras <ben@minix3.org>
Mon, 2 Apr 2007 16:23:55 +0000 (16:23 +0000)
commands/scripts/packman.sh

index d2823b643c50e69de6bf94a0ca99e25aca084a5f..037cee3456c051ace1a45e277fe0fc97e2128169 100644 (file)
@@ -116,7 +116,7 @@ do  cd $TMPDIR
                if [ -f "$cdpackages" ]
                then    cat $cdpackages
                fi
-               ) | sort -t'|' +1 | awk '{ n++; printf "%d|%s\n", n, $0 }' 
+               ) | sort -f -t'|' +0 | awk '{ n++; printf "%d|%s\n", n, $0 }' 
        ) >$TMPF
        highest="`wc -l $TMPF | awk '{ print $1 - 1 }'`"
        awk -F'|' <$TMPF '{ printf "%3s %-15s %s\n", $1, $2, $3 }' | more