I'm looking at a bash script with this:
PARAMS="%1;$1;$2;$3;$4;$5;$6;$7;$8;$9"
As I understand it, the parameters that are passed in on script execution will be added to this list.
When I run this:
runscript.sh CONFIG 2>&1
I see this error:
line 76: [[%1;CONFIG;;;;;;;;: command not found
where line 76 contains this:
if [[$PARAMS =~ "CONFIG" ]];
What does the %1
mean and how should I run the script to get it to work?