delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/06/23/16:25:40

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <20040623202517.99275.qmail@web60304.mail.yahoo.com>
Date: Wed, 23 Jun 2004 13:25:17 -0700 (PDT)
From: Patrick Samson <p_samson AT yahoo DOT com>
Subject: Inactive or unsupported "-E" option on echo
To: cygwin AT cygwin DOT com
MIME-Version: 1.0
X-IsSubscribed: yes

I got confused by the options supported in echo:

$ /bin/echo --help
Usage: /bin/echo [OPTION]... [STRING]...
Echo the STRING(s) to standard output.

  -n              do not output the trailing newline
  -e              enable interpretation of the
backslash-escaped characters
                    listed below
  -E              disable interpretation of those
sequences in STRINGs
  ^^^
$ /bin/echo -E toto
-E toto

However, with the bash built-in version:
$ echo -E toto
toto

In both versions, default is to not interpret
the backslash (#define V9_DEFAULT is commented out
in sh-utils/src/echo.c).
But the -E option is valid (recognized) in the
built-in version, not in the exe version.

There is likely nothing to do, on the cygwin side.
It's only a pity that the usage message does not
vary in accordance with the #define as the supported
options and behaviour do.



	
		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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