As the script uses file name globbing only in one place,
disable it by default and enable it when necessary.
* xlat/gen.sh: Add -f to shebang.
(main): Enable file name globbing to generate the list of input files.
-#!/bin/sh -eu
+#!/bin/sh -efu
#
# Copyright (c) 2014-2015 Mike Frysinger <vapier@gentoo.org>
# Copyright (c) 2014-2015 Dmitry V. Levin <ldv@altlinux.org>
if [ -d "${input}" ]; then
local f names=
- for f in "${input}"/*.in; do
+ set +f
+ set -- "${input}"/*.in
+ set -f
+ for f; do
[ -f "${f}" ] || continue
name=${f##*/}
name=${name%.in}