lkml.org 
[lkml]   [2011]   [Apr]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3/4] Documentation/00-INDEX.sh: add script to help keeping the index up-to-date
Randy Dunlap <rdunlap@xenotime.net> (23/04/2011):
> but what am I doing wrong?
>
> cd Documentation
> sh ./00-INDEX.sh
>
> The "undocumented" list looks correct (well, it could omit .orig files),
> but the "Documented but missing" list contains words, e.g.:

Looks like sed's not filtering out lines before '00-INDEX'; my reading
of POSIX sed specification[1] would seem to confirm the filtering
should work, see:
[2addr]d
Delete the pattern space and start the next cycle.

1. http://pubs.opengroup.org/onlinepubs/007908799/xcu/sed.html

Maybe some regex fun then; what if you remove the anchors (^ and $)?

And anyway, using sed --posix to disable all GNU extensions gives the
expected output here (with GNU sed version 4.2.1).

What's your sed/system, so that I can check what's going on there, and
how to deal with it?

Using 'grep -A $ABIGNUMBER' could be a workaround I guess, but a ugly
one…

KiBi.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2011-04-23 19:17    [W:0.064 / U:0.360 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site