Support nullglob in profile.*.in files
authorMartin Liska <mliska@suse.cz>
Tue, 16 Aug 2022 13:14:26 +0000 (15:14 +0200)
committerMartin Liska <mliska@suse.cz>
Tue, 16 Aug 2022 13:26:23 +0000 (15:26 +0200)
commit538f0c744dd4e1d931b98d01425b45137afcd9a4
treeff0027cddee66bb5c465408b7908a34b0b4a5111
parent31d6b1fe74ab89138b4d256742997b730dc5cba8
Support nullglob in profile.*.in files

In openSUSE we have the following RPM checker that uses
shopt -s nullglob:
https://github.com/openSUSE/post-build-checks/blob/master/checks/50-check-libtool-deps#L31

The script loads all /etc/profile.d/*.sh files via source $FILE which
can end up by stuck cat (with no arguments):

shopt -s nullglob ; cat "/etc/debuginfod"/*.urls
(stuck)
config/profile.csh.in
config/profile.sh.in