delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/10/19/17:52:14

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <39EF6CF5.68E7B73E@veritas.com>
Date: Thu, 19 Oct 2000 14:51:49 -0700
From: Bob McGowan <rmcgowan AT veritas DOT com>
Organization: VERITAS Software
X-Mailer: Mozilla 4.73 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Cygwin <cygwin AT sources DOT redhat DOT com>
Subject: [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 AT sourceware DOT cygnus DOT com
> 
> --
> Bob McGowan
> Staff Software Quality Engineer
> VERITAS Software
> rmcgowan AT veritas DOT com

-- 
Bob McGowan
Staff Software Quality Engineer
VERITAS Software
rmcgowan AT veritas DOT com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019