I really don’t know, we expect, to be honest, but when I run this on my system, it “works” perfectly. Nothing happens, but this is what I expect. I am not getting an error message. According to the manual page,
is the correct way to run a script. Expect then break out on the script that you are executing as cmd file.
The way I got this to reproduce the problem was to actually put ^ M at the end of the line instead of the usual new line (saw Bert F's answer, and this prompted me to try). I am sure that the vim: set list command will show any odd characters.
Glenn mcallister
source share