Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Nov 2002 09:36:44 -0800
From:      Adam Weinberger <adamw@FreeBSD.ORG>
To:        Matthias Andree <ma@dt.e-technik.uni-dortmund.de>
Cc:        Edwin Groothuis <edwin@mavetju.org>, ports@FreeBSD.ORG
Subject:   Re: funny REINPLACE_CMD failure for \r
Message-ID:  <20021106173644.GK197@vectors.cx>
In-Reply-To: <m3adkm3k83.fsf@merlin.emma.line.org>
References:  <20021105003210.GA92795@k7.mavetju> <20021105013354.GA197@vectors.cx> <m3adkm3k83.fsf@merlin.emma.line.org>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>> (11.06.2002 @ 0523 PST): Matthias Andree said, in 0.8K: <<
> Adam Weinberger <adamw@FreeBSD.ORG> writes:
> 
> >>> (11.04.2002 @ 1632 PST): Edwin Groothuis said, in 0.7K: <<
> >> It seems that REINPLACE_CMD doesn't know how to handle \r's in the
> >> expression, "-e 's!\r!!'" fails all the time for me (no matter how
> >> much \'s I add to it :-). Right now I just replace these by
> >>     "${TR} -d '\015' < file > file.new; {$MV} file.new file"
> >> but I was wondering if somebody has a better solution for it.
> >
> > Does ^V^M not work?
> 
> Are you confident the next editor (not vim or nvi though ;-) will keep
> the binary CR character? I'm not. And it's at best ugly. (One can see
> horses puke in front of pharmacies, as a German saying goes.)
>> end of "Re: funny REINPLACE_CMD failure for \r" from Matthias Andree <<

I'm sure Freud would have something to say about these German horses
you're hallucinating about ::)

I can't think of any strikingly good solutions. But I'd really hope an
editor wouldn't clobber it... no faith, though. Maybe it's time to
finally institute [:cr:] and [:tab:], and correspondingly iscr(3) and
istab(3).

- -Adam


- --
Adam Weinberger
adam@vectors.cx
adamw@FreeBSD.ORG

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQE9yVMso8KM2ULHQ/0RAvhjAKCFaxeXY8yT+mpIZhMaIODNEiax+QCghB1/
2CbdKi8psQcHyIKEgTlLPO0=
=UxCi
-----END PGP SIGNATURE-----

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021106173644.GK197>