[Interest] [OT] Re: Defining a string in qmake command line
Thiago Macieira
thiago.macieira at intel.com
Fri Jan 24 03:25:16 CET 2014
On quinta-feira, 23 de janeiro de 2014 19:42:31, Till Oliver Knoll wrote:
> > Exercise left to the reader: why didn't I check with echo?
>
> That's a trick question! Because an echo repeats everything you say it would
> be sufficient to escape with half the number of backslashes as needed. But
> since we need 7 of them which cannot be divided by 2 without fractional
> part the use of echo here is impossible and might even format your
> harddrive (twice!).
The answer is "because I'm using zsh, whose echo command parses escape
sequences".
$ echo \\\\
\
$ /bin/echo \\\\
\\
$ echo \\n\\x41
A
$ /bin/echo \\n\\x41
\n\x41
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140123/769f5ee8/attachment.sig>
More information about the Interest
mailing list