bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sorry--this is my question


From: Joachim Schmitz
Subject: Re: sorry--this is my question
Date: Sat, 23 Jul 2011 14:17:27 +0200

Jan Schampera wrote:
On 22.07.2011 18:12, the mad doctor kaeding wrote:
is this a bug?

echo goodbye\ cruel\ world\!
goodbye cruel world!
echo "goodbye cruel world!"
bash: !": event not found
echo "goodbye cruel world\!"
goodbye cruel world\!


No, this is a specific history expansion in interactive shells.

Execute ''set +H'' and try again (it's disabled in non-interactive
shells).

Or use single quotes:

echo 'goodbye cruel world!'

double quotes only prevent filename expansion, but allow interpretation of other Shell meta-characters

Bye, Jojo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]