summaryrefslogtreecommitdiff
path: root/init.d
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2012-11-06 22:49:49 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2012-11-06 22:49:49 +0000
commitf6c3896087a364e7cabe791640a50c675fc9ca4a (patch)
treea19ff9a25092e7aa02a9ca08a69ebfaf3b25e17f /init.d
parentec60e20331c7becd1b46ca38291f4c75db25e168 (diff)
downloadopenrc-f6c3896087a364e7cabe791640a50c675fc9ca4a.tar.gz
openrc-f6c3896087a364e7cabe791640a50c675fc9ca4a.tar.bz2
openrc-f6c3896087a364e7cabe791640a50c675fc9ca4a.tar.xz
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 <robbat2@gentoo.org>
Diffstat (limited to 'init.d')
-rw-r--r--init.d/bootmisc.in2
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