delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/10/18/15:29:46

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
Date: Thu, 18 Oct 2001 11:38:11 -0500
From: Wayne Willcox <wayne AT reliant DOT knighthammer DOT com>
To: hrishy <hrishys AT yahoo DOT co DOT uk>
Cc: Corinna Vinschen <cygwin AT cygwin DOT com>
Subject: Re: cygiwn newline character
Message-ID: <20011018113811.A90730@reliant.immure.com>
Reply-To: Wayne Willcox <wayne AT reliant DOT immure DOT com>
References: <20011018102346 DOT O1696 AT cygbert DOT vinschen DOT de> <20011018092258 DOT 28625 DOT qmail AT web12605 DOT mail DOT yahoo DOT com>
Mime-Version: 1.0
X-Mailer: Mutt 1.0pre2i
In-Reply-To: <20011018092258.28625.qmail@web12605.mail.yahoo.com>
X-Operating-System: FreeBSD reliant.knighthammer.com 3.5-STABLE FreeBSD 3.5-STABLE

Looks like a bug, seems that cygwin's echo does not correctly handle
the tab.  
If you double quote the whole string and then use a tab it should work.

echo "hello world tabkey hi there"


On Thu, Oct 18, 2001 at 10:22:58AM +0100, hrishy wrote:
> Hello all
> 
> i am running the following programme under windows 
> #!/bin/sh
> echo hello world '\t' hi there
> 
> i am getting the output as hello world '\t' hi there
> 
> wheras i require the output to be
> hello word      hi there
> 
> could anybody please help
> 
> regards
> Hrishy
> 
> ____________________________________________________________
> Nokia Game is on again. 
> Go to http://uk.yahoo.com/nokiagame/ and join the new
> all media adventure before November 3rd.
> 
> --
> 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 AT reliant DOT immure DOT 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/

- Raw text -


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