Hi Wolfgang, On Tue, 19 Oct 2021 at 10:09, Wolfgang Denk <w...@denx.de> wrote: > > Dear Simon, > > In message > <capnjgz3ks06_cy8mll2v-ezqzyo6qeecz2c78hvauqanaz0...@mail.gmail.com> you > wrote: > > > > I thought you were trying to use + at the end of a variable. > > > > I used: > > > > fred\+=aaa > > > > and got > > > > cc1: warning: unknown escape sequence: '\='' > > > > You can try it yourself by editing sandbox.env in the > > u-boot-dm/env-working tree. > > Hmmm... > > -> cat foo.c > #define A ampersand > #define B berta > > foo\+=B; > -> gcc -E foo.c > # 0 "foo.c" > # 0 "<built-in>" > # 0 "<command-line>" > # 1 "/usr/include/stdc-predef.h" 1 3 4 > # 0 "<command-line>" 2 > # 1 "foo.c" > > > > foo\+=berta; > > > > -> cat bar.c > fred\+=aaa > -> gcc -E bar.c > # 0 "bar.c" > # 0 "<built-in>" > # 0 "<command-line>" > # 1 "/usr/include/stdc-predef.h" 1 3 4 > # 0 "<command-line>" 2 > # 1 "bar.c" > fred\+=aaa > > > I do not see this problem...
Would you mind actually trying it in the env file, as I suggested? Regards, Simon