Curl command doesn't work in bash script
Don't store a command in a variable; if you absolutely must have something usable with logging, put the arguments in an array.
test='{"evaluation": "none"}'args=( -XPUT localhost9200/test/evaluation/"$i" -d "$test" )echo "curl ${args[*]}"curl "${args[@]}"