I am expecting that variable url will be resolved in $() but I am getting variable of variable as url and not "http://testing.com"
url="http://testing.com"
echo "Fetching from ${url}"
some_var=$(python somePythonScript.py url)
I am expecting that variable url will be resolved in $() but I am getting variable of variable as url and not "http://testing.com"
url="http://testing.com"
echo "Fetching from ${url}"
some_var=$(python somePythonScript.py url)
You correctly referenced the variable here:
echo "Fetching from ${url}"
So do the same thing here:
some_var=$(python somePythonScript.py "${url}")