This is what ident(1) reports on one particular file:

   $: every $

It's a TeX file, and the actual line is

  The algebra $\B$ is ccc, hence $\B = \Union\B_\alpha$: every $x\in\B$ is

The pattern ident(1) searches for is supposed to be "$keyword:... $"
In the above, the RCS keyword is not actually there. Is this a bug?

        Jan


Index: ident.c
===================================================================
RCS file: /cvs/src/usr.bin/rcs/ident.c,v
retrieving revision 1.29
diff -u -p -u -p -r1.29 ident.c
--- ident.c     20 Apr 2011 19:34:16 -0000      1.29
+++ ident.c     11 Aug 2013 19:32:15 -0000
@@ -130,6 +130,9 @@ ident_line(FILE *fp)
                        goto out;
        }
 
+       if (0 == buf_len(bp))
+               goto out;
+
        buf_putc(bp, VALDELIM);
 
        while ((c = getc(fp)) != KEYDELIM) {

Reply via email to