can someone tell me why this:
> cat test.exp
gets this output?
> ./test.exp
--
Andy
> cat test.exp
Code:
#!/usr/local/bin/expect -f
global testvar
set testvar "foo"
proc testproc {} {
send_user "var=$testvar"
}
testproc
gets this output?
> ./test.exp
Code:
can't read "testvar": no such variable
while executing
"send_user "var=$testvar""
(procedure "testproc" line 2)
invoked from within
"testproc
"
(file "./test.exp" line 10)
Andy