In my expect script I have two variables I would like to add. Both of them will be variables into the script.
hello="My Life"
world="is wonderful"
./script.sh $hello $world
in script.sh
#!/usr/bin/expect
set timeout 10
match_max 100000000
set first_var [lindex $argv 0]
set second_var [lindex $argv 1]
Currently,
first_var="My"
second_var="Life"
The code below works as expected when don't pass in them in as variables.
./script.sh 'My Life' 'is wonderful'
I need to know how to have that script take in the variables and still ignore white space within them.