[Python-bugs-list] [Bug #116325] RedHat 5.2: ./configure: test: too many arguments

noreply@sourceforge.net noreply@sourceforge.net
Sat, 7 Oct 2000 09:21:47 -0700


Bug #116325, was updated on 2000-Oct-07 08:34
Here is a current snapshot of the bug.

Project: Python
Category: Build
Status: Closed
Resolution: None
Bug Group: Platform-specific
Priority: 6
Summary: RedHat 5.2: ./configure: test: too many arguments

Details: When running configure in the current CVS tree on RedHat 5.2, I get the following warning/error. (configure does not stop, though.)

[...]
checking for --with-threads... yes
./configure: test: too many arguments
checking for mach/cthreads.h... no
[...]

This is probably related to Barry's checkin 1.167, which changed a couple of tests in that area.


Follow-Ups:

Date: 2000-Oct-07 09:02
By: twouters

Comment:
Assigned to Barry, because he broke it ;) Barry, please read my message to python-dev of last friday, commenting on your checkin. I may have been more righter than I thought ;) but I'm not confident enough to fix it without a more experienced /bin/sh person agreeing. Here's a little demo on how 'test' works on the RedHat 5.2 system in question:

~/src > set with_threads=foobar
~/src > test ! -z $with_threads -a -d $with_threads
~/src > set with_threads=
~/src > test ! -z $with_threads -a -d $with_threads
test: too many arguments
~/src > 

In other words, the test doesn't work right if 'with_threads' is empty.

-------------------------------------------------------

Date: 2000-Oct-07 09:20
By: gvanrossum

Comment:
Barry is gone for the weekend (Jewish holiday).
I know exactly what's going on: the argument to test -z must be in double quotes. I'll check in a fix momentarily.
-------------------------------------------------------

For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=116325&group_id=5470