in reply to and multiline commands


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

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


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


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

Replies are listed 'Best First'.
Re^2: 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 ".