This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[Fwd: echo with sh.exe doesn't understand multiple parameters]


I managed a reply to the original poster only.  For what its worth, here is my 2 cents worth ...

Bob McGowan wrote:
> 
> These are mutually exclusive options.  The -n makes echo emulate the old Bourne shell behavior, -e the new.
> 
>    echo -n test
> and
>    echo -e 'test\c'
> 
> Are equivalent.  The other backslash sequences recognized when -e is used had no equivalent in older shells.  You had to embed litteral characters, where possible.
> 
> Hope this helps.
> 
> John Pollock wrote:
> >
> > With the echo command, using -n or -e alone with sh works fine:
> >
> > $ echo -e blah
> > blah
> > $ echo -n blah
> > blah$
> >
> > but when you try to use both flags at once, sh seems to get confused:
> >
> > blah$ echo -n -e blah
> > -e blah$
> >
> > Is there a workaround?
> >
> > John
> >
> > --
> > Want to unsubscribe from this list?
> > Send a message to cygwin-unsubscribe@sourceware.cygnus.com
> 
> --
> Bob McGowan
> Staff Software Quality Engineer
> VERITAS Software
> rmcgowan@veritas.com

-- 
Bob McGowan
Staff Software Quality Engineer
VERITAS Software
rmcgowan@veritas.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]