Re: [PATCH] test-lib: fix non-portable pattern bracket expressions
- From
Jeff King <peff@peff.net>
- Date
- Feb 11, 2019, 23:46 UTC
- Message-ID
- <20190211234626.GA13301@sigill.intra.peff.net>
- In-Reply-To
- <20190211195803.1682-1-szeder.dev@gmail.com>
On Mon, Feb 11, 2019 at 08:58:03PM +0100, SZEDER Gábor wrote:
> Use a '!' character to start a non-matching pattern bracket > expression, as specified by POSIX in Shell Command Language section > 2.13.1 Patterns Matching a Single Character [1].
Just when I think I know every little gotcha in the shell, I learn another one. :) Thanks for fixing this, and for digging up the POSIX reference.
-Peff