On Thu, 27 Dec 2007, Gerrit Pape wrote:

> On Thu, Jul 19, 2007 at 01:59:38PM +0200, Cristian Ionescu-Idbohrn wrote:
> > Consider running the attached script.  You will notice it fails on
> > test 2 and 4.  Both bash and busybox-ash main trunk pass all tests.
> > zsh 4.3.2-25 fails test 8.
>
> Hi Cristian,
>
> test 2: FOO2="${FOO%%[^0-9A-Za-z]*}"
> test 4: FOO4="${FOO%%[^[:alnum:]]*}"
>
> please see:
>  
> http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_13
>
>  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.
>
> So it looks like this isn't a bug, but the patterns you use can produce
> 'unspecified results'.

You are so right Gerrit.
Thanks for pointing me to that paragraph.
Please close this bug.


Cheers,

-- 
Cristian



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to