[pacman-dev] [PATCH] libmakepkg/util/pkgbuild.sh: fix missing extglob

Eli Schwartz eschwartz at archlinux.org
Tue Mar 20 03:21:59 UTC 2018

On 03/19/2018 11:05 PM, Eli Schwartz wrote:
> We use an extended glob here, but were relying on having it globally set
> in makepkg. This causes it to fail when used in scripts.

This was... fun to find. I was writing a minimal srcinfo generator tool
to replace mksrcinfo from pkgbuild-introspection, and along the way
discovered that the following did not work:

bash -c 'source /usr/share/makepkg/srcinfo.sh; source PKGBUILD;

But running that in an interactive shell did work. Why? Well, because
*bash-completion* turns on extglob.

Eli Schwartz
Bug Wrangler and Trusted User

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.archlinux.org/pipermail/pacman-dev/attachments/20180319/a627cfa3/attachment.asc>

More information about the pacman-dev mailing list