Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • 5
    An uglier form is: `'I'"'"'m a student' Commented Nov 24, 2011 at 19:36
  • 4
    echo $'I\'m a student!' => !': event not found, this is not a real single quoted string which, in bash, should protect from any interpretation. Commented May 28, 2014 at 15:26
  • 1
    @regilero What versions have problems with this? I don't see that error in bash 4.1.2. Commented Dec 1, 2014 at 15:29
  • @sappjw OS X bash: $ bash --version GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin15) Copyright (C) 2007 Free Software Foundation, Inc. Commented Oct 31, 2016 at 13:06
  • And this kind of stuff is why I use Python as a replacement for Bash scripts now. Commented Jan 27, 2017 at 18:58