From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id C92651381F3 for ; Tue, 6 Nov 2012 22:54:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B5C75E061F; Tue, 6 Nov 2012 22:53:49 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 2AB29E061F for ; Tue, 6 Nov 2012 22:53:49 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5809033DBEB for ; Tue, 6 Nov 2012 22:53:48 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id EC926E5442 for ; Tue, 6 Nov 2012 22:53:46 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: <1352242189.f6c3896087a364e7cabe791640a50c675fc9ca4a.robbat2@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: init.d/ X-VCS-Repository: proj/openrc X-VCS-Files: init.d/bootmisc.in X-VCS-Directories: init.d/ X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: f6c3896087a364e7cabe791640a50c675fc9ca4a X-VCS-Branch: master Date: Tue, 6 Nov 2012 22:53:46 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 44a23f9d-4cec-44a1-b2f0-ea8608b3fa13 X-Archives-Hash: ca5aada09178498b9ed8bedf8e1a5451 commit: f6c3896087a364e7cabe791640a50c675fc9ca4a Author: Robin H. Johnson gentoo org> AuthorDate: Tue Nov 6 22:49:49 2012 +0000 Commit: Robin H. Johnson gentoo org> CommitDate: Tue Nov 6 22:49:49 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=f6c38960 init.d/bootmisc: POSIX XSI shellism. In a pathname expansion, specifically single-character match, the pure POSIX specification uses '!' as the Negation character where a regular expression would normally be '^'. Regular expression: "a[^a]a" Pathname expansion pattern: "a[!a]a" Reference: IEEE Std 1003.1, 2004 Edition 2. Shell Command Language 2.13 Pattern Matching Notation 2.13.1 Patterns Matching a Single Character > The description of basic regular expression bracket expressions in the > Base Definitions volume of IEEEĀ StdĀ 1003.1-2001, Section 9.3.5, RE > Bracket Expression shall also apply to the pattern bracket expression, > except that the exclamation mark character ( '!' ) shall replace the > circumflex character ( '^' ) in its role in a "non-matching list" in > the regular expression notation. A bracket expression starting with an > unquoted circumflex character produces unspecified results. Signed-off-by: Robin H. Johnson gentoo.org> --- init.d/bootmisc.in | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/init.d/bootmisc.in b/init.d/bootmisc.in index d869270..695e450 100644 --- a/init.d/bootmisc.in +++ b/init.d/bootmisc.in @@ -27,7 +27,7 @@ cleanup_tmp_dir() ebegin "Wiping $dir directory" # Faster than raw find - if ! rm -rf -- [^ajlq\.]* 2>/dev/null ; then + if ! rm -rf -- [!ajlq\.]* 2>/dev/null ; then # Blah, too many files find . -maxdepth 1 -name '[^ajlq\.]*' -exec rm -rf -- {} + fi