I'm trying to fetch the value of a currency from remote api, so I can later run it through some calculation. However, I cannot assign this value to a variable.
#!/usr/bin/env zsh
result = $(curl -s -X GET "https://openexchangerates.org/api/latest.json?app_id=SOME_KEY" | jq '.rates.GBP')
echo $result
This results in :
> ./script.sh:5: command not found: result