Re: [PATCH 3/4] Documentation/00-INDEX.sh: add script to helpkeeping the index up-to-date
From: Cyril Brulebois
Date: Sat Apr 23 2011 - 13:15:37 EST
Randy Dunlap <rdunlap@xxxxxxxxxxxx> (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.
Attachment:
signature.asc
Description: Digital signature