dash.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Herbert Xu <herbert@gondor.apana.org.au>
To: Dimitar Yurukov <mscalindt@gmail.com>
Cc: mscalindt@gmail.com, dash@vger.kernel.org, harald@gigawatt.nl
Subject: Re: [PATCH v2] expand: Recognize '^' as a negation character in BE
Date: Mon, 19 Jul 2021 13:13:28 +0800	[thread overview]
Message-ID: <20210719051328.GA16142@gondor.apana.org.au> (raw)
In-Reply-To: <20210716125027.18824-1-mscalindt@gmail.com>

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

      reply	other threads:[~2021-07-19  5:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-16  9:42 [PATCH] " Dimitar Yurukov
2021-07-16 10:00 ` Harald van Dijk
2021-07-16 12:46   ` Dimitar Yurukov
2021-07-16 12:50 ` [PATCH v2] " Dimitar Yurukov
2021-07-19  5:13   ` Herbert Xu [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210719051328.GA16142@gondor.apana.org.au \
    --to=herbert@gondor.apana.org.au \
    --cc=dash@vger.kernel.org \
    --cc=harald@gigawatt.nl \
    --cc=mscalindt@gmail.com \
    --subject='Re: [PATCH v2] expand: Recognize '\''^'\'' as a negation character in BE' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).