[dundee] Help with Bash Shell

Adam Sampson ats at offog.org
Thu Mar 31 09:50:48 UTC 2011


"'Gary Short'" <gary at garyshort.org> writes:

> curl -X PUT http://couchdb:port/db -d $data

You probably want:

  curl -X PUT http://couchdb:port/db -d "$data"

Putting the variable expansion inside quotes stops the shell from
splitting it up into multiple arguments.

-- 
Adam Sampson <ats at offog.org>                         <http://offog.org/>



More information about the dundee mailing list