Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/sh avoid duplicate includes (from kre)
details: https://anonhg.NetBSD.org/src/rev/c9bad0398646
branches: trunk
changeset: 344003:c9bad0398646
user: christos <christos%NetBSD.org@localhost>
date: Tue Mar 08 23:23:31 2016 +0000
description:
avoid duplicate includes (from kre)
diffstat:
bin/sh/mkinit.sh | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r 21c691a918a5 -r c9bad0398646 bin/sh/mkinit.sh
--- a/bin/sh/mkinit.sh Tue Mar 08 20:16:56 2016 +0000
+++ b/bin/sh/mkinit.sh Tue Mar 08 23:23:31 2016 +0000
@@ -1,5 +1,5 @@
#! /bin/sh
-# $NetBSD: mkinit.sh,v 1.5 2008/10/23 20:21:57 apb Exp $
+# $NetBSD: mkinit.sh,v 1.6 2016/03/08 23:23:31 christos Exp $
# Copyright (c) 2003 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -55,7 +55,7 @@
IFS=' '
set -- $line
# ignore duplicates
- [ "${includes}" != "${includes%* $2 }" ] && continue
+ [ "${includes}" != "${includes%* $2 *}" ] && continue
includes="$includes$2 "
continue
;;
Home |
Main Index |
Thread Index |
Old Index