delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/01/29/17:23:02

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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: <3E385413.E4A0931@acm.org>
Date: Wed, 29 Jan 2003 14:22:11 -0800
From: David Rothenberger <daveroth AT acm DOT org>
X-Accept-Language: en
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Suppress newline under cygwin bash
References: <5 DOT 2 DOT 0 DOT 9 DOT 2 DOT 20030127233002 DOT 02882c90 AT pop3 DOT cris DOT com>

Randall R Schulz wrote:
> 
> This is csh / tcsh's way of suppressing the terminal newline usually
> supplied by the "echo" command. It also documented in the man page to
> work with the separate echo executable, "/bin/echo.exe", but it does
> not do so for me (for whatever reason). 

The man page is out-of-date.  If you look at the info file, you see that
you must provide the -e switch to /bin/echo to enable this.

% /bin/echo -e 'testing\c'
testing% 

% /bin/echo 'testing\c'
testing\c
% 

I recommend using pinfo instead of man, since man pages are often
out-of-date if there's an info file.

Dave

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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