In bash, how do I escape an exclamation mark?

Posted by Matthew on Super User See other posts from Super User or by Matthew
Published on 2010-04-22T18:53:43Z Indexed on 2010/04/22 18:54 UTC
Read the original article Hit count: 369

I want to do something like bzr commit -m "It works!". I can sort of escape the exclamation mark by doing bzr commit -m "It works\!". However, then my commit message includes the backslash. How do I escape the exclamation mark, while still ignoring the backslash?

© Super User or respective owner

Related posts about bash

Related posts about punctuation