[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: inaccurate documentation for [[:ascii:]]
From: |
alex xmb ratchev |
Subject: |
Re: inaccurate documentation for [[:ascii:]] |
Date: |
Tue, 30 May 2023 14:42:46 +0200 |
does graph mean printable
On Tue, May 30, 2023, 14:40 Emanuele Torre <torreemanuele6@gmail.com> wrote:
> The documentation for glob character classes is innacurate:
>
> > Within [ and ], character classes can be specified using the syntax
> > [:class:], where class is one of the following classes defined in the
> > POSIX standard:
> > alnum alpha ascii blank cntrl digit graph lower print punct space
> > upper word xdigit
> > A character class matches any character belonging to that class. The
> > word character class matches letters, digits, and the character _.
>
> Out of those classes, [:ascii:] and [:word:] are not defined by the
> POSIX standard.
>
> [:word:] is clarified, but [:ascii:] isn't, so it is easy to miss that
> bash supports [:ascii:] when glancing that part of the documentation.
>
> I think it should be clarified that bash supports all the standard
> character classes, and that [:word:] and [:ascii:] are supported
> extensions.
>
> o/
> emanuele6
>
>