Re: Expect fails to recognize regexp

Felix Lee
2002-09-14T00:53:40Z

Corinna Vinschen <vinschen@redhat.com>:
> What I did was adding the following patch to gdb.exp:

are you sure the gdb.exp you're editing is the one that's
being used when you run tests, rather than a gdb.exp that's
'installed' somewhere? the path of the gdb.exp that's read is
mentioned somewhere in the gdb.log file.

or you can just add a
verbose "got here" 0
somewhere in the file to check.

btw, "." does match "\n", which you can verify by doing:
$ expect
expect1.1> regexp "." "\n"
1
--