Error from bash I've never seen before.

Steve yorvik.ubunto at googlemail.com
Tue Apr 13 20:39:17 UTC 2010


On Tue, 13 Apr 2010 21:23:24 +0100, Steve <yorvik.ubunto at googlemail.com>  
wrote:

> On Tue, 13 Apr 2010 21:15:21 +0100, Ray Parrish <crp at cmc.net> wrote:
>
>> Hello,
>>
>> I was just trying to run a short script that allows me to Tweet on
>> Twitter from the command line, and got a strange error I don't know how
>> to diagnose. Here is the error message -
>>
>> ray at RaysComputer:~$ Tweet.sh "OPB Radio rocks the state of Oregon!"
>> bash: !": event not found
>> ray at RaysComputer:~$
>>
>> I don't think it's a script error, as I have been using it with no
>> problems, and the error message seems to be complaining about the
>> exclamation mark at the end of my command line for some reason that I
>> have no clue about.
>>
>> Just in case it's the script causing the error, here is it's code as  
>> well -
>>
>> #!/bin/bash
>> curl -u "username":"password" -d status="$*"
>> http://twitter.com/statuses/update.xml > /dev/null
>> echo "Tweet, tweet!!!"
>>
>> Note that I have replaced my username, and password in the script with
>> those words so as not to endanger my Twitter account with this posting.  
>> 8-)
>>
>> Thanks for any help you can be.
>>
>> Later, Ray Parrish
>>
> Isn’t ! a bash command
>
Use single quotes, eg. Tweet.sh 'OPB Radio rocks the state of Oregon!'

-- 
Steve (Yorvyk)
http://www.lubuntu.net




More information about the ubuntu-users mailing list