This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fix quoting of program-transform-name in toplevel configure


On Thu, Aug 21, 2003 at 12:38:39AM -0700, Geoffrey Keating wrote:
> On Wednesday, August 20, 2003, at 11:53  PM, Phil Edwards wrote:
> >>
> >>Solaris native complains about unexpected ; at line 805.
> >
> >Yep.  If the "no list given so assume the program args" form of 'for'
> >is to be used, it has to be
> >
> >    for ac_arg
> >    do
> >
> >i.e., semicolon and newline aren't equivalent.
> >
> Interesting.  Bash seems to happily accept both forms.

Mm, I should elaborate:  semicolon and newline are supposed to be equivalent.
This is simply a bug in Solaris' native /bin/sh.  We already recommend
that they use a different shell, but currently we don't enforce that by
testing and rejecting the broken shell.

-- 
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.
    - Brian W. Kernighan


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]