Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#87 command line parameters are not available for -c commands

open
nobody
None
5
2011-12-21
2011-12-21
heinrichmartin
No

$ expect -v
expect version 5.44.1.15
$ expect -ic "puts \$argv" -- 42
can't read "argv": no such variable
while executing
"puts $argv"
expect1.1> puts $argv
42
expect1.2> exit
$

Discussion

  • heinrichmartin
    heinrichmartin
    2011-12-21

    the actual use case is to require packages upon initialization.
    e.g.

    expect -ic "package require bootstrap" -- -b