Re: [PATCH v2 1/3] test-lib: allow selecting tests by substring/regex with --run
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Oct 14, 2020, 19:24 UTC
- Message-ID
- <CAPc5daU_aw=yWPKHG1XGt4X5A1AkEXeLfCmHqqVfZ+FzBD7nxg@mail.gmail.com>
- In-Reply-To
- <20201014180707.GB24279@coredump.intra.peff.net>
Show 6 quoted lines
> > If you define the pattern is not regexp but is glob, you can use > > case/esac to do this without any forking. > > Yes, that would probably be OK for most purposes, though I admit my real > love for regex support is the ability to use "." instead of space to > avoid quoting arguments. ;)
I use "?" for the same purpose for globs. For things that are casual, I find that it tends to make the end-user (read: my) experience simpler to use globs than to use regexp, largely for your ".*" vs "*" reasons.