[arch-projects] [dbscripts] [PATCH 1/2] Don't quote $PKGEXT
eschwartz at archlinux.org
Thu Feb 15 21:39:20 UTC 2018
On 02/15/2018 03:48 PM, Dave Reisner wrote:
> Nope, changing the kind of glob doesn't work here. There's simply no
> glob expansion of any kind inside [[ -f ]] (or any other stat-like
I was thinking maybe something like the way makepkg compares filenames
to various extended globs, but actually that doesn't help since [[ = ]]
will only expand the right side...
But if we do globbing at all, I want to reliably enforce actual limits
on what .pkg.tar.?z is meant to convey.
find(1) doesn't support the FNM_EXTGLOB flag from fnmatch(3) and we use
PKGEXT as a pattern a couple times for that. We could replace `find
-name` altogether, using globstar.
Bug Wrangler and Trusted User
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: OpenPGP digital signature
More information about the arch-projects