Lines Matching refs:SORT
32 SORT=sort
35 export TEST AWK CC LC_ALL SUM SORT TMP
38 0) set $SORT ;;
48 SORT=$1
72 case $SORT in
74 *) test -x $dir/$SORT && SORT=$dir/$SORT ;;
112 echo " $SORT $SORT_ARGS"
114 SORT="$SORT $SORT_ARGS"
144 if $SORT +0 </dev/null 2>/dev/null; then o=
146 if $SORT /dev/null -o xx 2>/dev/null; then O=
148 if $SORT -g </dev/null 2>/dev/null; then g=
150 if test Xcx.by.az = X`echo by.cx.az | $SORT -R3 -k.2.1 2>/dev/null`; then k=
152 if $SORT -M </dev/null 2>/dev/null; then M=
154 if $SORT -s </dev/null 2>/dev/null; then s=
156 if $SORT -S </dev/null 2>/dev/null; then S=
158 if $SORT -x default </dev/null 2>/dev/null; then x=
160 if test Xok = X`$SORT -Xtest 2>/dev/null`; then X=
162 if $SORT -y4096 </dev/null 2>/dev/null; then y=-y4096
164 if $SORT -z10000 </dev/null 2>/dev/null; then
166 if $SORT -T. </dev/null 2>/dev/null; then
182 if \$SORT "\$@" \$F >xx && \$SORT -c "\$@" xx 2>/dev/null
204 $SORT "\$@" 2>out <in >in1 || error=1
231 '') SORT="$SORT -S" ;;
297 if $SORT -k1,1 -f -k2,2 <in >out 2>/dev/null
330 '') set `$SORT --list < /dev/null | sed 's/[ ].*//'` ;;
334 COMMAND=$SORT
347 *) SORT="$COMMAND -x $METHOD"
363 $SORT -c in 2>/dev/null && echo ${TEST}A FAILED
367 $o $SORT -o in +0 in || echo ${TEST}C FAILED
376 $SORT -cr in >out 2>xx && echo ${TEST}A FAILED
380 $SORT -c /dev/null 2>xx || echo ${TEST}C FAILED
424 cat in | $SORT | cat >xx
427 $SORT in | $SORT -cr 2>/dev/null && echo ${TEST}C FAILED
454 $SORT -c -k 2 in 2>/dev/null && ${TEST}G FAILED
571 $SORT -m in in1 >xx
583 $SORT -o xx in in in in in in in in in in in in in in in in in
585 $SORT -o in -mu in in in in in in in in in in in in in in in in in
587 $SORT -o in -m in in in in in in in in in in in in in in in in in
666 $SORT -r -o in1 in
674 $SORT -r -u -m -o in1 in1
683 $SORT -nr in - >xx
687 $SORT -mn - in >xx
728 $SORT -u -k 1,1 in >xx
824 $SORT -u in >xx
851 $SORT -oxx </dev/null
854 $SORT -c </dev/null || echo ${TEST}B FAILED
856 $SORT -cu </dev/null || echo ${TEST}C FAILED
914 $SORT -k2b -k2 in >xx
915 $SORT -c -t: -k2n xx 2>/dev/null || echo ${TEST}A FAILED
916 $SORT -k2,2.1b -k2 in >xx
917 $SORT -c -t: -k3n xx 2>/dev/null || echo ${TEST}B FAILED
918 $SORT -k2.3 -k2 in >xx
919 $SORT -c -t: -k4n xx 2>/dev/null || echo ${TEST}C FAILED
920 $SORT -k2b,2.3 -k2 in >xx
921 $SORT -c -t: -k5n xx 2>/dev/null || echo ${TEST}D FAILED
922 $SORT -k2.3,2.1b -k2 in >xx
923 $SORT -c -t: -k6n xx 2>/dev/null || echo ${TEST}E FAILED
924 $SORT -k2,2.1b -k2r in >xx
925 $SORT -c -t: -k7n xx 2>/dev/null || echo ${TEST}F FAILED
926 $SORT -b -k2,2 -k2 in >xx
927 $SORT -c -t: -k8n xx 2>/dev/null || echo ${TEST}G FAILED
928 $SORT -b -k2,2b -k2 in >xx # perhaps same as G
929 $SORT -c -t: -k3n xx 2>/dev/null || echo ${TEST}H FAILED\
950 $O $SORT /dev/null -o out || $o echo ${TEST}B FAILED
973 $SORT -- -k </dev/null >xx || echo ${TEST}A argument FAILED
983 $SORT -- -o in1 - <in >out
1144 $g $SORT -gu in >xx && $g $SORT -c -gu xx || echo ${TEST}B FAILED
1186 $s $SORT -su -k1,1 in in in1 in1 >xx
1195 $s $SORT -sru -k1,1 in in in1 in1 >xx
1209 $s $SORT -m -s -k1,1n in in1 >out