[arch-projects] [devtools] [PATCH 5/7] lib/common.sh: Adjust to work properly with `set -u`
Eli Schwartz
eschwartz at archlinux.org
Mon Jan 15 17:25:22 UTC 2018
On 01/15/2018 11:57 AM, Luke Shumaker wrote:
> From: Luke Shumaker <lukeshu at parabola.nu>
> libmakepkg does not work with `set -u`; but mostly because of the include
> guards! So we just need to temporarily disable `set -u` (nounset) while
> loading libmakepkg. Instead of introducing a new variable, just store the
> initial nounset status in _INCLUDE_COMMON_SH; rather than a useless
> fixed-string "true".
Would it make sense to fix this in libmakepkg instead? devtools are not
the only project that would reuse libmakepkg components. Also, working
towards having makepkg be able to use set -u could be interesting.
--
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/arch-projects/attachments/20180115/0a164819/attachment.asc>
More information about the arch-projects
mailing list