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

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to