I am trying to run a bash script and set the variables in one command. Is this possible?
bash wp.sh dbname="hello",dbuser="admin"
It's not working for me, and I can't seem to find any guidance on this. Thanks in advance for your help!
I am trying to run a bash script and set the variables in one command. Is this possible?
bash wp.sh dbname="hello",dbuser="admin"
It's not working for me, and I can't seem to find any guidance on this. Thanks in advance for your help!
To set environment variables that will be inherited by the script process, put the assignments at the beginning:
dbname="hello" dbuser="admin" bash wp.sh