Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Date: Thu, 18 Oct 2001 15:14:48 -0500
From: Wayne Willcox <wayne@reliant.knighthammer.com>
To: Jeffrey Jopling <jeff.jopling@indlogic.com>
Cc: hrishy <hrishys@yahoo.co.uk>, Corinna Vinschen <cygwin@cygwin.com>
Subject: Re: cygiwn newline character
Message-ID: <20011018151448.C92113@reliant.immure.com>
Reply-To: Wayne Willcox <wayne@reliant.immure.com>
References: <20011018092258.28625.qmail@web12605.mail.yahoo.com> <NFBBJFGFPMIGIDBLLDJBOEKJCAAA.jeff.jopling@indlogic.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: Mutt 1.0pre2i
In-Reply-To: <NFBBJFGFPMIGIDBLLDJBOEKJCAAA.jeff.jopling@indlogic.com>
X-Operating-System: FreeBSD reliant.knighthammer.com 3.5-STABLE FreeBSD 3.5-STABLE

This will only work correctly on Cygwin and FreeBSD (maybe others)
on AIX this will produce:
-e hello world   hi there

you do have the tab but you don't really want the -e.
Just thoughts on portability.

On Thu, Oct 18, 2001 at 01:13:11PM -0400, Jeffrey Jopling wrote:
> >i am running the following programme under windows 
> >#!/bin/sh
> >echo hello world '\t' hi there
> 
> Try:
> 
> #!/bin/sh
> echo -e 'hello world \t hi there'
> 
> Jeff
> 
> --
> 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/

-- 
Slowly and surely the unix crept up on the Nintendo user ...
Wayne Willcox                          I will not eat green eggs and ham
wayne@reliant.immure.com                     I will not eat them Sam I Am!!
A wise person makes his own decisions, a weak one obeys public opinion.
                -- Chinese proverb

--
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/

