From jari.oksanen at oulu.fi  Thu Nov  7 09:28:27 2013
From: jari.oksanen at oulu.fi (Jari Oksanen)
Date: Thu, 7 Nov 2013 08:28:27 +0000
Subject: [Rd] cat with backspace and newline characters
In-Reply-To: <CAHavPHEOdVJQH_iv3WhxZm65uoJPh+Wn1=B1Vd+O7Fdt3aQnTw@mail.gmail.com>
References: <CAHavPHGe1A7R6RxD45exQnq7zJXWatiKQ8rR7SiFJBE2RGVQDQ@mail.gmail.com>
	<CADv2QyG6Nvn+YJ46Pz5PF7FqB9Q-LnEeLE4_EAgfVgBKo+EakA@mail.gmail.com>
	<CAHavPHH7VMYxBLjJsDO_2wwS-tC=gwbHiMfXVeP4fhXPZiJwNg@mail.gmail.com>
	<CAH7sKSN6a7ObU8g7xXf+fHq0cdMeKvsr7PSsorhNZ=DP3Pf8Ow@mail.gmail.com>
	<21112.61708.698124.149056@stat.math.ethz.ch>
	<8E2469B4-2A7B-44DD-896F-F409C39F4496@sciviews.org>
	<21113.8847.603856.486049@stat.math.ethz.ch>
	<A750360B-31A8-49EB-B21F-87EE4BA6E412@gmail.com>
	<CANROs4e=Do0ejPc7w=rOzG8zzNdhkmYWFJN=qU61JQRGnLWiPQ@mail.gmail.com>
	<CAHavPHHwsSq05zhDcCVMBo6kbvgBRwetCx45H19knmRU1xs-_Q@mail.gmail.com>
	<15FAF9D3-1BA6-48EA-8B98-1347B97256CD@r-project.org>
	<CAHavPHEOdVJQH_iv3WhxZm65uoJPh+Wn1=B1Vd+O7Fdt3aQnTw@mail.gmail.com>
Message-ID: <6EB98963-69B9-4CCA-B371-6EB2ABF45982@oulu.fi>


On 07/11/2013, at 09:35 AM, Renaud Gaujoux wrote:

> I agree that the handling of \b is not that strange, once one agrees
> on what \b actually means, i.e. "go back one character" and not
> "delete previous character".
> The fact that R GUI on Mac and Windows interprets/renders it
> differently shows that normality and strangeness is quite relative
> though.
> 
As a user DEC LA120 terminal I expect the following:

> cat("a\b^\n")
?
>

Everything else feels like a bug.

Cheers, Jari Oksanen



[Rd] cat with backspace and newline characters
Jari Oksanen