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, 17:57 UTC
- Message-ID
- <CAPc5daU+w2U_5FBrSYEVO5PB2sOV_fxvBQ1=51_=NMTZooZGmA@mail.gmail.com>
- In-Reply-To
- <CABPp-BEOrYhUBZ112Z7qFgwUYojmus6_Ra0G0Ts4y+n=-D5vMw@mail.gmail.com>
> are you suggesting dropping the regex handling and limit it to > substring matching? In either case, does using expr save us anything > (isn't expr a shell command)?
I had something along this line in mind, not to do a regex but a glob.
case "$title" in $selector) found=1 ;; esac