[U-Boot] U-boot env variables parsing
Detlev Zundel
dzu at denx.de
Thu Apr 8 18:06:40 CEST 2010
Hi Jocke,
[...]
> Since an escape char appear to exist, one should be able to use it much like you
> did above so I don't think that any use case disappears. Instead the common usage
> becomes simpler and the so far artificial use case needs an extra escape char.
Hm. I have to admit that I did not actually try your code, but there is
a loop in there until no further substitution takes place. It seems to
me that this loop over process_macros thus does substitution _and_ uses
up the escape characters.
So I fear that if in one iteration _some_ substitution takes place and
the escape character is stripped in the same iteration _another_ round
of substitution will be done and the escape character is gone. So in
effect you will have to study the whole string in advance (plus all the
substitutions it will see) to tell how many rounds the loop will take
and how many escape characters will be needed.
Such a behaviour would be very odd in my eyes. On the other hand, this
is only theory....
Cheers
Detlev
--
Directories are added, deleted, and rearranged much as you would
expect, even if you don't know it's what you'd expect.
-- Tom Lord in TLA Documentation
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de
More information about the U-Boot
mailing list