This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: [ANNOUNCEMENT] Cygwin/XFree86 DocBook-based FAQ draft
- Subject: Re: [ANNOUNCEMENT] Cygwin/XFree86 DocBook-based FAQ draft
- From: Alexander Gottwald <alexander dot gottwald at informatik dot tu-chemnitz dot de>
- Date: Tue, 22 May 2001 14:23:16 +0200 (CEST)
- Cc: Francis VIVAT <cygwin-xfree at sources dot redhat dot com>
On Tue, 22 May 2001, Reinhard Karcher wrote:
> On Tue, May 22, 2001 at 01:51:23PM +0200, Francis VIVAT wrote
> > $ echo \351
> > é
> >
> > CygWin folks, is it the normal behavior ?
> >
>
> $ echo \351
> 351
>
> $ echo äöü
> äöü
>
> bash version 2.05.0(6)
> cygwin 1.3.2
>
> Do you have older versions?
man bash reports:
QUOTING
[...]
Words of the form $'string' are treated specially. The
word expands to string, with backslash-escaped characters
replaced as specifed by the ANSI C standard. Backslash
escape sequences, if present, are decoded as follows:
[some other codes]
\nnn the character whose ASCII code is the octal
value nnn (one to three digits)
\xnnn the character whose ASCII code is the hex
adecimal value nnn (one to three digits)
> echo $'\351'
é
> echo \351
351
otherwise help echo stats, that even \351 should be interpreted correctly
> bash --version
GNU bash, version 2.04.0(1)-release (i386-suse-linux)
bye
ago
--
Alexander.Gottwald@informatik.tu-chemnitz.de
http://www.gotti.org
+49 3725 349 80 80