LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Help with shell script error (http://www.linuxquestions.org/questions/linux-software-2/help-with-shell-script-error-862711/)

thebombzen 02-14-2011 08:57 PM

Help with shell script error
 
I have some shell script

#!/bin/sh

if test $ac_cv_sizeof_short -eq 0 \
-o $ac_cv_sizeof_unsigned_short -eq 0 \
-o $ac_cv_sizeof_int -eq 0 \
-o $ac_cv_sizeof_unsigned_int -eq 0 \
-o $ac_cv_sizeof_long -eq 0 \
-o $ac_cv_sizeof_unsigned_long -eq 0 \
-o $ac_cv_sizeof_long_long -eq 0 \
-o $ac_cv_sizeof_unsigned_long_long -eq 0 \
-o $ac_cv_sizeof_float -eq 0 \
-o $ac_cv_sizeof_double -eq 0 ; then
echo '*** I have a problem determining the size of some variable types. Either'
echo '*** you compiler is broken, or your system+compiler combination is not'
echo '*** supportet by the "autoconf" framework we use to generate this'
echo '*** configure script.'
exit 1
fi

that produces this error:

some-sh.sh: line 3: test: too many arguments

How can I fix this?

corp769 02-14-2011 09:21 PM

How many arguments are you passing to it?


All times are GMT -5. The time now is 11:48 PM.