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]

Re: echo with sh.exe doesn't understand multiple parameters


Using -e, a \c at the end of the string to echo doesn't add the CR.  (Of
course one needs to escape or quote it.)  Note that it seems that anything
after the \c gets dropped.  See the echo man page.

$ echo -e blah\\c
blah$

- Barry Buchbinder

==============
     To: <cygwin at sourceware dot cygnus dot com> 
     Subject: echo with sh.exe doesn't understand multiple parameters 
     From: "John Pollock" <jpollock at curl dot com> 
     Date: Thu, 19 Oct 2000 15:50:19 -0400 



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


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