Dear Mats Kärrman,

please don't top post/full quote.  If needed, please read
http://www.netmeister.org/news/learn2quote.html

In message <[email protected]> you wrote:
>
> If not correct, then what is this supposed to mean (common/main.c :: 
> builtin_run_command()):
> 
>               /*
>                * Find separator, or string end
>                * Allow simple escape of ';' by writing "\;"
>                */

As I metioned, this is the _second_ part of escaping, that which
happens when processing the commands.  The first part happens when
reading the environment.

The examples I gave should show pretty well how it works:

> > See here:
> > 
> >         => setenv foo 'echo part one\;echo part two' ; print foo ; run > foo
> >         foo=echo part one;echo part two
> >         part one
> >         part two
> >         => setenv foo 'echo part one\\;echo part two' ; print foo ; run>  
> > foo
> >         foo=echo part one\;echo part two
> >         part one;echo part two
> >         =>

Here is one more:

        => setenv foo echo part one\\\;echo part two ; print foo ; run foo 
        foo=echo part one\;echo part two
        part one;echo part two
        =>

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: [email protected]
Prediction is very difficult, especially of the future.  - Niels Bohr
_______________________________________________
U-Boot mailing list
[email protected]
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to