This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Request for Assistance: GCC 3.3.1 Code-Gen Problems
On Wed, Jul 16, 2003 at 11:04:05PM +0200, Eric Botcazou wrote:
> > 2) Solaris' sh doesn't like "export X=Y". It must be two statements,
> > "X=Y; export X". Yah, it sucks, but if it didn't suck, we wouldn't
> > have to use CONFIG_SHELL in the first place, so this should come as
> > no surprise. :-)
>
> Are you sure? At least it likes "export CONFIG_SHELL=/bin/ksh" because I've
> been using this line since the very beginning on the 5 versions of Solaris
> and never had any problems (and yes, echo $CONFIG_SHELL returns the right
> answer).
The original sh grammar doesn't permit assignments as the argument to
'export', only variable names, so this advice could apply to more than
Solaris. In any case:
$ export x=y
x=y: is not an identifier
$
yep, I'm sure.
--
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace. We seek
not your counsel, nor your arms. Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen. - Samuel Adams