echo “hello!”

I was asked why echo "hello!" doesn’t work yesterday. I finnaly figured it out today.

steamedfish@SteamedFish:~$ echo "hello!"
bash: !": event not found
steamedfish@SteamedFish:~$ \"
bash: ": command not found
steamedfish@SteamedFish:~$ echo "hello!"
echo "hello""
>

When bash sees !" it trys to search histroy for command ".

This entry was posted on Thursday, May 28th, 2009 at 10:36 am and is filed under 技术相关. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply