bug-gnulib
[Top][All Lists]
Advanced

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

Re: new module 'system-quote'


From: Bruno Haible
Subject: Re: new module 'system-quote'
Date: Wed, 09 May 2012 11:23:46 +0200
User-agent: KMail/4.7.4 (Linux/3.1.10-1.9-desktop; KDE/4.7.4; x86_64; ; )

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




reply via email to

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