aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2002-09-24 19:05:40 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2002-09-24 19:05:40 +0000
commit73be6d69efde70848f9d414179d7447b81473fdc (patch)
tree9ac8b2bd610fea36fce5d9b4ba75c91121f9bf3c
parent334a0d61e193000141edd96198f3574c4c7e96ad (diff)
downloadsrc-73be6d69efde70848f9d414179d7447b81473fdc.tar.gz
src-73be6d69efde70848f9d414179d7447b81473fdc.zip
Make it work with POSIX sort (POS arg).
All old sorts understand -k too.
Notes
Notes: svn path=/head/; revision=103905
-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 ad459c5ae1dc..7b8c856cff5e 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