This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: zsh's echo command buggy?


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]