Temporarily `set -o noglob` when splitting QA_DT_HASH.
authorZac Medico <zmedico@gentoo.org>
Sun, 27 Jul 2008 06:02:05 +0000 (06:02 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 27 Jul 2008 06:02:05 +0000 (06:02 -0000)
svn path=/main/trunk/; revision=11206

bin/misc-functions.sh

index 3698237930e15e8452e5bf4508ab9b670d311524..5854de9b6c5cb1d867812fd3d37ad5ecb6c1bbbc 100755 (executable)
@@ -170,9 +170,13 @@ install_qa_check() {
                                                        sed -e "s#^${x#/}\$##" -i "${T}"/scanelf-ignored-LDFLAGS.log
                                                done
                                        else
+                                               local shopts=$-
+                                               set -o noglob
                                                for x in ${QA_DT_HASH} ; do
                                                        sed -e "s#^${x#/}\$##" -i "${T}"/scanelf-ignored-LDFLAGS.log
                                                done
+                                               set +o noglob
+                                               set -${shopts}
                                        fi
                                fi
                                sed -e "/^\$/d" -e "s#^#/#" -i "${T}"/scanelf-ignored-LDFLAGS.log