[PATCH 4/4] xfstests: filename handling - fix early wildcard expansion

Jan Tulak
2016-07-11T09:26:21Z

Add quotation marks around the wildcarded name.

Signed-off-by: Jan Tulak <jtulak@redhat.com>
---
check | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/check b/check
index 58d8869..5ff897b 100755
--- a/check
+++ b/check
@@ -548,7 +548,7 @@ for section in $HOST_OPTIONS_SECTIONS; do
# and the test has a name. A bit of hassle to find really
# the test and not its sample output or helping files.
bname=$(basename $seq)
- full_seq=$(find $(dirname $seq) -name $bname* -executable |
+ full_seq=$(find $(dirname $seq) -name "$bname*" -executable |
awk '(NR == 1 || length < length(shortest)) { shortest = $0 }\
END { print shortest }')
if [ -f $full_seq ] \
--
2.5.5