Quotation Ugliness

Jussi Piitulainen jpiitula at ling.helsinki.fi
Wed Nov 26 14:45:50 CET 2014


Tim Chase writes:

> This doesn't jibe with the pairs of quotes you sent and your request
> for nesting.  In most popular shells, the majority of your "quote"
> characters don't actually quote anything:
> 
>   bash$ echo // hello
>   hello

Where did the // go?

[...]
> and has problems with things like
> 
>   someprog.py uname && su""do cat /etc/sudoers
>   someprog.py uname && s"ud"o cat /etc/sudoers
> 
> which my shell will parse valid execution of sudo.  

This one looks like "scare quotes":

$ "sudo" cat /etc/sudoers

(Sorry for the noise. I just find this amusing.)



More information about the Python-list mailing list