in reply to Re: Expect.pm and multiline commands
in thread Expect.pm and multiline commands

I should clarify my example because the case I'm trying to test actually matches your example. That is, I want to test a string passed to an option and the string should pass along the new line.

I think your example may have answered my question about different shells. I use tcsh and I get:
>echo "test\ ? stuff" test stuff >echo "test Unmatched ".