symbols in command line argument.. python, bash
Posted
by Idlecool
on Stack Overflow
See other posts from Stack Overflow
or by Idlecool
Published on 2010-05-15T12:24:28Z
Indexed on
2010/05/15
12:34 UTC
Read the original article
Hit count: 250
Hi, I am writing a python script on Linux for twitter post using API, Is it possible to pass symbols like "(" ")" etc in clear text without apostrophes....
% ./twitterupdate this is me #works fine
% ./twitterupdate this is bad :(( #this leaves a error on bash.
Is the only alternative is to enclose the text into --> "" ?? like..
% ./twitterupdate "this is bad :((" #this will reduce the ease of use for the script
Is there any workaround?
© Stack Overflow or respective owner