Skip to content

Instantly share code, notes, and snippets.

@twexler
Created May 19, 2011 18:13
Show Gist options
  • Save twexler/981377 to your computer and use it in GitHub Desktop.
Save twexler/981377 to your computer and use it in GitHub Desktop.
Favorite piece of code
def quote_argument(argument):
failure = ('\\', '"', '$', '`', ';')
for fail in failure:
if(argument.find(fail) != -1):
os._exit(255)
return argument
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment