[ANNOUNCEMENT] Cygwin/XFree86 DocBook-based FAQ draft
Alexander Gottwald
alexander.gottwald@informatik.tu-chemnitz.de
Tue May 22 05:23:00 GMT 2001
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
More information about the Cygwin-xfree
mailing list