cbrandtbuffalo has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to build a test using Test::Expect, but I'm finding it hard to duplicate the above.shell>some -really -long -command 'string\ more string stuff'
seems to send the right stuff, escaping and sending a '\', then a newline. But I think Expect.pm is getting confused because it seems to treat the second part of the command as the expected output.expect_send(qq{some -command 'string stuff\\ \cM more on next line'}, +"Testing...");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Expect.pm and multiline commands
by Tomte (Priest) on Sep 28, 2006 at 13:48 UTC | |
by cbrandtbuffalo (Deacon) on Sep 28, 2006 at 14:26 UTC |