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*

7
  • @terdon and @karthik Hello World! is not the same as Hello!World when it comes to csh-style history expansion interference. Commented Jul 30, 2022 at 14:29
  • @StéphaneChazelas it was someone else who edited and made the answer look like that. I did rollback. check now Commented Jul 30, 2022 at 14:32
  • echo Hello!World doesn't work. ! is even more a problem outside of "..." than inside though outside, you can escape it with backslash. Commented Jul 30, 2022 at 14:34
  • 1
    echo "Hello""!""World" doesn't work either in older versions of bash. See the linked duplicate for details. Commented Jul 30, 2022 at 14:36
  • Both works here. why cant we use 'newer' versions of bash? Commented Jul 30, 2022 at 14:46