[U-Boot] U-boot env variables parsing

Wolfgang Denk wd at denx.de
Thu Apr 1 15:05:29 CEST 2010


Dear Joakim Tjernlund,

In message <OF6D501B3A.40F7E6A2-ONC12576F8.00466BE2-C12576F8.00471566 at transmode.se> you wrote:
>
> > I don't think you ever posted this before. I cannot find any trace of
> > such a patch - not in the public archives nor locally.
> 
> I think I did, but this would have been late 2001 or 2002 I think :)
> Not 100% sure about the date since the old CVS log looks a bit fishy
> after the repo got converted to Subversion.

Ah... that was at PPCBoot times, then. Found it:
Tue, 11 Sep 2001 15:29:26 +0200

AFAICT the patch was late for a release, but has not been formally
rejected. Probably just got forgotten.

> > Hm... will this not make escaping impossible? Assume you want to pass
> >
> >    arg=${name}
> >
> > to Linux. How would you escape this so it does NOT get expanded if
> > you run process_macros() arbitrarily often?
> 
> Possibly, I never needed that though.
> One would probably need to add an escape char for that. Something
> like arg=\${name}

Woudn't this then just cause another cycle through process_macros(),
where it then gets substitured anyway? [Guess I gotta try this out.]

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Es ist nicht genug zu wissen, man muß auch anwenden; es ist nicht ge-
nug zu wollen, man muß auch tun.   -- Goethe, Maximen und Reflexionen


More information about the U-Boot mailing list