Bash 3.1.17(9) $@ Expansion error
Mark Fortescue
mark@mtfhpc.demon.co.uk
Mon Nov 6 14:45:00 GMT 2006
Hi,
I have just tried a 'make check' on CSSC-1.0.1 and found a number of
failures caused by what would appear to be a $@ expansion failure for the
case where $@ is an empty string.
It expands to '\x7F' !!!
Test case: Download and unpack CSSC-1.0.1.
Enter the following commands:
cd CSSC-1.0.1 # Change dir if required
./configure -enable-binary
make
make check
The make check fails. This first failure has been tracked this down to $@
expansions in the echo_nonl (line 106) function in tests/common/test-common
lines 198 and 207.
After changing the code to avoid using the echo_nonl function at the
specified lines, make check continues a bit further.
The second failure is in tests/admin/I-option.sh (line 59) , again due to a
$@ expansion in echo_nonl.
This third failure is in tests/binary/auto.sh (line 96), again due to a $@
expansion in echo_nonl (at line 64).
After fixing these lines so that none of them use the echo_nonl function,
the tests passed.
bash -version gives:
GNU bash, version 3.1.17(9)-release (i686-pc-cygwin)
Copyright (C) 2005 Free Software Foundation, Inc.
The cygcheck file is attached.
Regards
Mark Fortescue.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 51809 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20061106/375a03f5/attachment.obj>
-------------- next part --------------
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list