Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Expect.pm and multiline commands

by Tomte (Priest)
on Sep 28, 2006 at 13:48 UTC ( #575353=note: print w/ replies, xml ) Need Help??


in reply to Expect.pm and multiline commands

IIRC

shell>some -really -long -command \ -with -many -options

is actualy one line - the newline character is consumed and not part of the executed command.

compare

tomte@librics-tomte ~ $ echo "test eins" test eins
to
tomte@librics-tomte ~ $ echo "test\ eins" testeins

regards,
tomte


An intellectual is someone whose mind watches itself.
-- Albert Camus


Comment on Re: Expect.pm and multiline commands
Select or Download Code
Replies are listed 'Best First'.
Re^2: Expect.pm and multiline commands
by cbrandtbuffalo (Deacon) on Sep 28, 2006 at 14:26 UTC
    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 ".

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://575353]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (13)
As of 2015-07-31 18:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (280 votes), past polls