summaryrefslogtreecommitdiffstats
path: root/usr.bin/vgrind
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2002-09-24 19:05:40 +0000
committerache <ache@FreeBSD.org>2002-09-24 19:05:40 +0000
commit136752fc5327d1689df7aeb5e6bc72efb2b3dfab (patch)
tree9ac8b2bd610fea36fce5d9b4ba75c91121f9bf3c /usr.bin/vgrind
parent7db6eff0eb88ed928389ad39d2bac71f0ca2c083 (diff)
downloadFreeBSD-src-136752fc5327d1689df7aeb5e6bc72efb2b3dfab.zip
FreeBSD-src-136752fc5327d1689df7aeb5e6bc72efb2b3dfab.tar.gz
Make it work with POSIX sort (POS arg).
All old sorts understand -k too.
Diffstat (limited to 'usr.bin/vgrind')
-rw-r--r--usr.bin/vgrind/vgrind.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/vgrind/vgrind.sh b/usr.bin/vgrind/vgrind.sh
index ad459c5..7b8c856 100644
--- a/usr.bin/vgrind/vgrind.sh
+++ b/usr.bin/vgrind/vgrind.sh
@@ -33,6 +33,8 @@
#
# @(#)vgrind.sh 8.1 (Berkeley) 6/6/93
#
+# $FreeBSD$
+#
set voptions=
set options=
@@ -134,7 +136,7 @@ if (-r index) then
sh -c "$postproc -rx1 $voptions -i -mvgrind 2>> xindex"
endif
endif
- sort -df +0 -2 xindex >index
+ sort -df -k 1,2 xindex >index
rm nindex xindex
else
if ($f == 'filter') then
OpenPOWER on IntegriCloud