Module Name:    src
Committed By:   kre
Date:           Fri Sep  2 20:25:14 UTC 2016

Modified Files:
        src/usr.sbin/postinstall: postinstall

Log Message:
PR toolchain/51457 -- be more posix compat with sort usage, though it
(currently anyway) makes no difference on NetBSD.


To generate a diff of this commit:
cvs rdiff -u -r1.204 -r1.205 src/usr.sbin/postinstall/postinstall

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/postinstall/postinstall
diff -u src/usr.sbin/postinstall/postinstall:1.204 src/usr.sbin/postinstall/postinstall:1.205
--- src/usr.sbin/postinstall/postinstall:1.204	Fri Sep  2 05:38:44 2016
+++ src/usr.sbin/postinstall/postinstall	Fri Sep  2 20:25:14 2016
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: postinstall,v 1.204 2016/09/02 05:38:44 kre Exp $
+# $NetBSD: postinstall,v 1.205 2016/09/02 20:25:14 kre Exp $
 #
 # Copyright (c) 2002-2015 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -648,7 +648,7 @@ obsolete_stand()
 
 	( cd "${DEST_DIR}${dir}" && ls -1d [0-9]*[0-9]/. ) \
 	| ${GREP} -v '[^0-9./]' \
-	| sort -t. -r -k1,1n -k2,2n -k3,3n \
+	| sort -t. -r -n -k1,1 -k2,2 -k3,3 \
 	| tail -n +2 \
 	| while read subdir ; do
 		subdir="${subdir%/.}"

Reply via email to