"'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/>