On 13/04/2023 08:07, Greg Wooledge wrote:
On Thu, Apr 13, 2023 at 12:12:23AM +0000, David wrote:
$ echo [^0-9]*
11 22           <------ new behaviour by dash
[...]
The correct negation syntax in POSIX sh globs is [!chars].

The shellcheck utility gives this suggestion as well. Their wiki have concise description of the issue, but links describing it in more details with precise references have not been added yet.

https://www.shellcheck.net/wiki/SC3026
Help by adding links to BashFAQ, StackOverflow, man pages, POSIX, etc

Reply via email to