|
From: Geoffrey F. <fu...@ga...> - 2002-01-21 16:50:32
|
Geoffrey Furnish writes:
> 2) I just found that I can't run configure on a slowaris box. That
> seems significant to me, and I'll be looking into it now.
The problem is near the top:
with_defaults=yes
for option; do
case "$option" in
-with-defaults | --with-defaults | -with-defaults=yes |
--with-defaults=yes )
with_defaults=yes
;;
-without-defaults | --without-defaults |
-with-defaults=no | --with-defaults=no )
with_defaults=no
;;
esac
done
Sun sh flips out saying the ; after "option" in the for clause, is
unexpected. Yet Sun man sh says:
for name [ in word ... ] do list done
Each time a for command is executed, name is set
to the next word taken from the in word list. If
in word ... is omitted, then the for command exe-
cutes the do list once for each positional parame-
ter that is set (see Parameter Substitution sec-
tion below). Execution ends when there are no more
words in the list.
But, evidently, it doesn't actually work as documented. I'm cahnging
this to:
for option in $*; do
which it seems to accept. Sheesh.
This is a Sunos 5.7 box, fyi.
--
Geoffrey Furnish fu...@ga...
|