[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnugo-devel] Bug in shell scripts
From: |
Stéphane Nicolet |
Subject: |
[gnugo-devel] Bug in shell scripts |
Date: |
Sun, 25 Jan 2004 00:57:57 +0100 |
Hi all,
The following sequence :
./configure
make
cd regression
make test
will fail with an error in regress.sh if Gnugo 5.3.4 is
installed out of the box in a directory which path includes
a space, on a computer where the shell variable $GNUGO is
undefined.
The reason is that the shell then understands the first part
of the path (before the space) as the command name and the
second part (after the space) as parameters for the command.
The fix is to protect the use of the $GNUGO variable with
quotes in regress.sh, eval.sh and test.sh :
in regress.sh :
"$GNUGO" --quiet "$@" --mode gtp < $tstfile \
in eval.sh :
"$GNUGO" --quiet $options1 $options2 $options3 $options4 --mode gtp
<$tstfile |\
in test.sh
"$GNUGO" --quiet $options $options2 --mode gtp <$gtpfile | egrep
'^[=?][0-9]+' | cut -c 2-
Sincerely yours,
Stéphane
... /// ... \\\ ...
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnugo-devel] Bug in shell scripts,
Stéphane Nicolet <=