On Wed, May 9, 2012 at 11:23 AM, Bruno Haible <br...@clisp.org> wrote: > Eli Zaretskii wrote: >> > Is there any chance that putting a newline or CR in an >> > environment variable, then using %varname%, would allow one to >> > embed such a character? >> >> Not surprisingly, it doesn't work, at least in my testing. > > Yup, that's what I found out as well. In a Cygwin shell I did: > > $ export NEWLINE=' > ' > $ cmd.exe /c 'printf "%s\n" "foo%NEWLINE%bar"' > > and got > > foo > > Bruno
Something like this will work http://stackoverflow.com/a/269819 Bastien >