From owner-svn-src-head@FreeBSD.ORG Wed Nov 9 06:51:46 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 18E56106564A; Wed, 9 Nov 2011 06:51:46 +0000 (UTC) (envelope-from netch@segfault.kiev.ua) Received: from segfault.kiev.ua (segfault.kiev.ua [193.193.193.4]) by mx1.freebsd.org (Postfix) with ESMTP id 939148FC14; Wed, 9 Nov 2011 06:51:45 +0000 (UTC) Received: from segfault.kiev.ua (localhost.segfault.kiev.ua [127.0.0.1]) by segfault.kiev.ua (8.14.4/8.14.4/8.Who.Cares) with ESMTP id pA96ZIam047918; Wed, 9 Nov 2011 08:35:18 +0200 (EET) (envelope-from netch@segfault.kiev.ua) Received: (from netch@localhost) by segfault.kiev.ua (8.14.4/8.14.4/Submit) id pA96ZDnT047915; Wed, 9 Nov 2011 08:35:13 +0200 (EET) (envelope-from netch) Date: Wed, 9 Nov 2011 08:35:13 +0200 From: Valentin Nechayev To: Alexey Dokuchaev Message-ID: <20111109063513.GD25476@netch.kiev.ua> References: <201111082302.pA8N2Wmj053356@svn.freebsd.org> <20111109014916.GA75862@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20111109014916.GA75862@FreeBSD.org> X-42: On Cc: Jilles Tjoelker , svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r227366 - in head/etc: . rc.d X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Nov 2011 06:51:46 -0000 Wed, Nov 09, 2011 at 01:49:16, danfe wrote about "Re: svn commit: r227366 - in head/etc: . rc.d": > > rc.d: Eliminate some unnecessary non-POSIX constructs: > > > > * ^ in character class > > > > - for file in ${dir}/[^0-9]*.sh; do > > + for file in ${dir}/[!0-9]*.sh; do > > I don't have my copy of POSIX handy, but looking at SUSv2, circumflex `^' is > documented as non-matching list expression specifier, while `!' is not. > > I am reading it wrong? You are right - Posix.1-2008 says the same - '^' as matching reverse and nothing for '!' A non-matching list expression begins with a ( '^' ), and specifies a list that shall match any single-character collating element except for the expressions represented in the list after the leading . -netch-