Tagged Questions
4
votes
2answers
2k views
Why does the exclamation mark `!` sometimes upset bash?
I realize that ! has special significance on the commandline in the context of the commandline history, but aside from that, in a runing script the exclamation mark can sometimes cause a parsing ...
6
votes
2answers
2k views
How to properly escape exclamation points in bash?
Today, I was caught redhanded while attempting to code golf a password generator for Twitter.
import string as s,random;print ''.join(random.sample(s.letters+s.digits+s.punctuation,9))
90 chars. ...