Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
Lustre 2.12.0, Lustre 2.13.0
-
None
-
3
-
9223372036854775807
Description
when trying to run any Lustre tests with bash as the shell (or via auster) and ost_HOST and/or mds_HOST set to a different node, the scripts fail in yaml.sh line 11:
/home/green/git/lustre-release/lustre/tests/yaml.sh: line 11: $logdir/node.$host.yml: ambiguous redirect
The line in question is
echo "$line" | sed "s/^${host}: //" | sed "s/^${host}://" \
>> $logdir/node.$host.yml;
if I put quotes around that "$logdir/node.$host.yml" - the error goes away and everything works as intended.
I guess this is the proper way to fix it?
Also this error does not show up if I use "sh" instead of "bash" to run the scripts, but I must use bash as otherwise flakey logic does not work.