|
From: | Peter Rosin |
Subject: | Re: New auxiliary archive script |
Date: | Tue, 10 Aug 2010 09:06:01 +0200 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 |
Den 2010-08-10 09:01 skrev Peter Rosin:
BTW, why is ! better than ^ here? Just curious.
I found the answer myself. Quoting the portable shell chapter in the autoconf manual: | 11.5 Shell Pattern Matching | | Nowadays portable patterns can use negated character classes | like ‘[!-aeiou]’. The older syntax ‘[^-aeiou]’ is supported | by some shells but not others; hence portable scripts should | never use ‘^’ as the first character of a bracket pattern. Cheers, Peter
[Prev in Thread] | Current Thread | [Next in Thread] |