delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/04/10/22:52:22

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
Date: Thu, 10 Apr 2003 19:50:32 -0700 (PDT)
From: "Peter A. Castro" <doctor AT fruitbat DOT org>
To: marius AT storm-olsen DOT com
cc: cygwin AT cygwin DOT com
Subject: Re: zsh's echo command buggy?
In-Reply-To: <13247.80.202.95.22.1050025234.squirrel@init.linpro.no>
Message-ID: <Pine.LNX.4.21.0304101949220.1640-100000@gremlin.fruitbat.org>
MIME-Version: 1.0

On Fri, 11 Apr 2003 marius AT storm-olsen DOT com wrote:

> >> Yes, looks like zsh has a printf(string) somewhere instead
> >> of printf("%s",string)...  Naughty, naughty...
> >
> > Yup,
> >   SOMEPATH=C:\This\nShouldnt\nH\na\np\np\ne\nn
> >
> >   C:\Documents and Settings\marius>zsh
> >   $P$Gecho $SOMEPATH
> >   C:\This
> >   Shouldnt
> >   H
> >   a
> >   p
> >   p
> >   e
> >   n
> >
> > ....gives a good laugh :-)
> 
> Wooha,
> 
> Really should have consulted with the manuall a bit better before posting!
> Just saw this in man zshall:  BSD_ECHO <S>
>      Make the echo builtin compatible with the BSD echo(1) command.
>      This  disables  backslashed  escape sequences in  echo strings
>      unless the -e option is specified.
> 
> My bad.. sorry people.. too many looong nights lately ;-)

Well, shoot!  I was just going to make that same observation.  Sorry I
didn't chime in sooner, but glad it's not a zsh bug!

> .marius

-- 
Peter A. Castro <doctor AT fruitbat DOT org> or <Peter DOT Castro AT oracle DOT com>
	"Cats are just autistic Dogs" -- Dr. Tony Attwood


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