[prev in list] [next in list] [prev in thread] [next in thread] 

List:       dash
Subject:    Re: [PATCH v2] expand: Recognize '^' as a negation character in BE
From:       Herbert Xu <herbert () gondor ! apana ! org ! au>
Date:       2021-07-19 5:13:28
Message-ID: 20210719051328.GA16142 () gondor ! apana ! org ! au
[Download RAW message or body]

Dimitar Yurukov <mscalindt@gmail.com> wrote:
> While performing bracket expression ('[...]'), DASH recognizes only '!'
> as a special character for negation/inversion, but POSIX specifies '^'.
> 
> The specification (2018 edition):
> "
> 9.3.3 BRE Special Characters
> 
> ^ The <circumflex> shall signify a non-matching list expression when it
>  occurs first in a list, immediately following a <left-square-bracket>
>  (see RE Bracket Expression).
> "

This is incorrect and ^ cannot be used in a portable script.

Cheers,
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic