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!
要设置将由脚本过程继承的环境变量,请将分配放在开头:
dbname="hello" dbuser="admin" bash wp.sh
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.