From owner-svn-src-all@FreeBSD.ORG Tue Nov 8 23:02:33 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1BA51106564A; Tue, 8 Nov 2011 23:02:33 +0000 (UTC) (envelope-from jilles@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 0BC658FC12; Tue, 8 Nov 2011 23:02:33 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id pA8N2Wq5053360; Tue, 8 Nov 2011 23:02:32 GMT (envelope-from jilles@svn.freebsd.org) Received: (from jilles@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id pA8N2Wmj053356; Tue, 8 Nov 2011 23:02:32 GMT (envelope-from jilles@svn.freebsd.org) Message-Id: <201111082302.pA8N2Wmj053356@svn.freebsd.org> From: Jilles Tjoelker Date: Tue, 8 Nov 2011 23:02:32 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r227366 - in head/etc: . rc.d X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Nov 2011 23:02:33 -0000 Author: jilles Date: Tue Nov 8 23:02:32 2011 New Revision: 227366 URL: http://svn.freebsd.org/changeset/base/227366 Log: rc.d: Eliminate some unnecessary non-POSIX constructs: * set - ... * empty braces * ^ in character class Modified: head/etc/rc.d/routing head/etc/rc.d/syscons head/etc/rc.subr Modified: head/etc/rc.d/routing ============================================================================== --- head/etc/rc.d/routing Tue Nov 8 22:50:28 2011 (r227365) +++ head/etc/rc.d/routing Tue Nov 8 23:02:32 2011 (r227366) @@ -247,6 +247,7 @@ static_atm() static_ipx() { + : } ropts_init() Modified: head/etc/rc.d/syscons ============================================================================== --- head/etc/rc.d/syscons Tue Nov 8 22:50:28 2011 (r227365) +++ head/etc/rc.d/syscons Tue Nov 8 23:02:32 2011 (r227366) @@ -99,7 +99,7 @@ syscons_configure_keyboard() *) sc_init echo -n ' keychange' - set - ${keychange} + set -- ${keychange} while [ $# -gt 0 ]; do kbdcontrol <${kbddev} -f "$1" "$2" shift; shift Modified: head/etc/rc.subr ============================================================================== --- head/etc/rc.subr Tue Nov 8 22:50:28 2011 (r227365) +++ head/etc/rc.subr Tue Nov 8 23:02:32 2011 (r227366) @@ -1638,7 +1638,7 @@ find_local_scripts_old () { continue zlist="$zlist $file" done - for file in ${dir}/[^0-9]*.sh; do + for file in ${dir}/[!0-9]*.sh; do grep '^# PROVIDE:' $file >/dev/null 2>&1 && continue slist="$slist $file"