[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
inaccurate documentation for [[:ascii:]]
From: |
Emanuele Torre |
Subject: |
inaccurate documentation for [[:ascii:]] |
Date: |
Tue, 30 May 2023 14:39:31 +0200 |
User-agent: |
Mutt/2.2.10 (2023-03-25) |
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
- inaccurate documentation for [[:ascii:]],
Emanuele Torre <=