bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: new module 'system-quote'


From: Bastien ROUCARIES
Subject: Re: new module 'system-quote'
Date: Wed, 9 May 2012 18:31:59 +0200

On Wed, May 9, 2012 at 11:23 AM, Bruno Haible <address@hidden> 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
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]