How do I escape an exclamation mark in bash?

后端 未结 4 720

Sometimes I feel the urge to put some more expressiveness in my git commit messages. Unfortunately bash does not seem to like this.

iblue@silence ~/git/warga         


        
4条回答
  •  南笙
    南笙 (楼主)
    2020-12-06 17:57

    Have a try this one

    git commit -m "Frustrating "'!'

    If in the middle of string then

    "hello"'!'"world"

提交回复
热议问题