Login | Register
My pages Projects Community openCollabNet

Discussions > dev > Re: [joist-cvs] CVS update: joist/conf Makefile

Project highlights: Architectural Overview

joist
Discussion topic

Back to topic list

Re: [joist-cvs] CVS update: joist/conf Makefile

Author Daniel Rall <dlr at collab dot net>
Full name Daniel Rall <dlr at collab dot net>
Date 2001-03-28 11:26:41 PST
Message edk at collab dot net writes:

> On Wed, Mar 28, 2001 at 09:59:21AM -0800, Daniel Rall wrote:
> > I don't understand this commit at all. The enclosing "" around the
> > shell variables should make the foreach thingger treat "$(VAR)" as a
> > single element, rather than a list of elements...
>
> Well, without the quotes, solaris sh chokes on it cause it evaluates it
> to:
>
> for f in ;
>
> and it sas the semicolon is unexpected. Even the if block alone isn't
> sufficient to protect things -- sh tries to parse the stuff inside the
> if block and chokes there.

bash has no problem with this, ugh...Solaris sh is totally broken. A
semi-colon is a statement terminator.

dlr@despot:News$ for v in ; do echo 'hi'; done; unset v
dlr@despot:News$

> I'd prefer to do away with the section entirely -- there are no httpd
> conf files, I get really sick of dealing with solaris sh stupidity like
> this, and I don't see *any* value that the section in question brings.
> Certainly it has brought me lots of headaches.

I agree that the section should be done away with. As it currently
stands, it's broken under bash if there is more than one element in
the list.

Daniel

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

Re: [joist-cvs] CVS update: joist/conf Makefile Daniel Rall <dlr at collab dot net> Daniel Rall <dlr at collab dot net> 2001-03-28 11:26:41 PST
Messages per page: