Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin Use extra="${2-/, }" to use $2 if defined, else defa...
details: https://anonhg.NetBSD.org/src/rev/304fe19579fe
branches: trunk
changeset: 329998:304fe19579fe
user: apb <apb%NetBSD.org@localhost>
date: Mon Jun 16 22:12:30 2014 +0000
description:
Use extra="${2-/,}" to use $2 if defined, else default to "/,".
diffstat:
usr.sbin/etcupdate/etcupdate | 4 ++--
usr.sbin/postinstall/postinstall | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diffs (40 lines):
diff -r 31255e5b44fc -r 304fe19579fe usr.sbin/etcupdate/etcupdate
--- a/usr.sbin/etcupdate/etcupdate Mon Jun 16 22:04:39 2014 +0000
+++ b/usr.sbin/etcupdate/etcupdate Mon Jun 16 22:12:30 2014 +0000
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: etcupdate,v 1.56 2014/06/12 13:56:32 apb Exp $
+# $NetBSD: etcupdate,v 1.57 2014/06/16 22:12:30 apb Exp $
#
# Copyright (c) 2001-2008 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -164,7 +164,7 @@
bre_quote()
{
local arg="$1"
- local extra="$2:/,"
+ local extra="${2-/,}"
printf "%s\n" "${arg}" | sed -e 's/[][^$.*\\'"${extra}"']/\\&/g'
}
diff -r 31255e5b44fc -r 304fe19579fe usr.sbin/postinstall/postinstall
--- a/usr.sbin/postinstall/postinstall Mon Jun 16 22:04:39 2014 +0000
+++ b/usr.sbin/postinstall/postinstall Mon Jun 16 22:12:30 2014 +0000
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: postinstall,v 1.173 2014/06/16 22:04:39 apb Exp $
+# $NetBSD: postinstall,v 1.174 2014/06/16 22:12:30 apb Exp $
#
# Copyright (c) 2002-2008 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -138,7 +138,7 @@
bre_quote()
{
local arg="$1"
- local extra="$2:/,"
+ local extra="${2-/,}"
printf "%s\n" "${arg}" | ${SED} -e 's/[][^$.*\\'"${extra}"']/\\&/g'
}
Home |
Main Index |
Thread Index |
Old Index