I have a bash script with the following content:
#!/bin/bash
cap=$1
assist=$2
host=$3
wget "http://$host:8080/MyApp/getNumberFromCap?cap=$cap&assist=$assist" -O - -o /dev/null
but when I run this script it does not make any call to the URL indicated. It seems like it's not resolving the variables put in it, in fact, if I replace the variables with a static content it works like a charm.
Where am I doing wrong?
Escaping the
&
solved the issue: