delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/08/04/09:07:59

X-Spam-Check-By: sourceware.org
From: Markus =?iso-8859-1?q?Sch=F6nhaber?= <mailing-cygwin AT schoenhaber DOT de>
Reply-To: cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
Subject: Re: Escape Character
Date: Fri, 4 Aug 2006 15:07:38 +0200
User-Agent: KMail/1.9.1
References: <5649305 DOT post AT talk DOT nabble DOT com>
In-Reply-To: <5649305.post@talk.nabble.com>
MIME-Version: 1.0
Message-Id: <200608041507.38653.mailing-cygwin@schoenhaber.de>
X-IsSubscribed: yes
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

mattlucasv wrote:

> I am new to Cygwin and I am just trying to use the escape character example
> is
>
> echo "\t\t Hello"
>
> but this returns \t\t Hello and ignores the escape characters.
>
> I was looking for it to return     Hello with a couple of TABS in front
> like it does on our True64 unix system.  Is the escape character differant
> in Cygwin or am I missing something ??? any help would be great

man echo
would have shown you echo's "-e" option. Try
echo -e "\t\t Hello"

I doubt that that's a matter of whether you use Cygwin or not but a matter of 
whether you use the echo command from the GNU core utilities or not. On your 
True64 unix, you propably don't.

Regards
  mks

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