Hello World

Jussi Piitulainen jpiitula at ling.helsinki.fi
Mon Dec 22 10:36:06 EST 2014


Steven D'Aprano writes:

> Don't try this at home!
> 
> # download_naked_pictures_of_jennifer_lawrence.py
> import os
> os.system("rm ――rf /")

Not sure what that character is (those characters are) but it's not
(they aren't) the hyphen that rm expects in its options, so:

  >>> os.system("rm ――rf /")
  rm: cannot remove `――rf': No such file or directory
  rm: cannot remove `/': Is a directory
  256

:)



More information about the Python-list mailing list