0

I have a bash script I need to call with a string parameter, which string starts with a exclamation mark "!" (this is mandatory in what I'm doing):

myCommand.sh "!HELLO"

Because of parameter expansion, bash reports an error:

-bash: !HELLO: event not found

Is there any way to escape the "!" that produces this? Another way to pass such parameter?

Bob
  • 1,495
  • 1
  • 19
  • 24

0 Answers0