[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] [Heirloom] bug in '.if' string comparison tests
From: |
Carsten Kunze |
Subject: |
Re: [Groff] [Heirloom] bug in '.if' string comparison tests |
Date: |
Wed, 3 Sep 2014 21:12:31 +0200 (CEST) |
> I've found another bug in Heirloom troff (with ^G being the
> control character, "Ctrl+V + Ctrl+G" in vim):
>
> .do xflag 3
> .if "A"A" .tm A is like A
> .if ^GB^GB^GB .tm B is like B
> .char " "\|
> .if "A"A" .tm A is like A
> .if ^GB^GB^GB .tm B is like B
>
> Output "A is like A" and "B is like B" only once.
Is'nt there a B too much? I mean would
.if ^GB^GB^G .tm B is like B
not be better than
.if ^GB^GB^GB .tm B is like B
> I've recently seen the usage of the ^G character as field
> separator. That is a good idea, since it should avoid most
> possible conflicts with user input. But does anyone know
> what does this character means, and why does it seems to be
> prefered to other control characters ?
Maybe to avoid problems with strings which contain ' or ".
' as separator is much better readable....
- [Groff] [Heirloom] bug in '.if' string comparison tests, Pierre-Jean, 2014/09/03
- Re: [Groff] [Heirloom] bug in '.if' string comparison tests,
Carsten Kunze <=
- Re: [Groff] [Heirloom] bug in '.if' string comparison tests, Tadziu Hoffmann, 2014/09/03
- Re: [Groff] [Heirloom] bug in '.if' string comparison tests, Carsten Kunze, 2014/09/03
- Re: [Groff] [Heirloom] bug in '.if' string comparison tests, Carsten Kunze, 2014/09/03
- Re: [Groff] [Heirloom] bug in '.if' string comparison tests, Carsten Kunze, 2014/09/03
- Re: [Groff] [Heirloom] bug in '.if' string comparison tests, Carsten Kunze, 2014/09/03
- Re: [Groff] [Heirloom] bug in '.if' string comparison tests, Tadziu Hoffmann, 2014/09/03
- Re: [Groff] [Heirloom] bug in '.if' string comparison tests, Carsten Kunze, 2014/09/03
- Re: [Groff] [Heirloom] bug in '.if' string comparison tests, Ralph Corderoy, 2014/09/04