Re: [PATCH 3/4] Documentation/00-INDEX.sh: add script to helpkeeping the index up-to-date

From: Cyril Brulebois
Date: Thu Apr 28 2011 - 08:41:57 EST


Randy Dunlap <rdunlap@xxxxxxxxxxxx> (26/04/2011):
> ad I don't see any environment variables that would affect grep either.
>
> Anyway, using this line instead of any one of the lines above works for me:
>
> documented=$(sed '1,/^00-INDEX$/d' 00-INDEX|grep -G -v ^[[:space:]]|sed 's:/$::')
>
> i.e., use ^[[:space:]] instead of the (original) '^\s'.

Hm, I still can't reproduce your original issue, even with a Fedora 11
system; but anyway, using [[:space:]] looks good. In the upcoming
patch I'm also dropping -G: It's the default for GNU grep, and it's
not POSIX-documented[1] anyway.

1. http://pubs.opengroup.org/onlinepubs/009695399/utilities/grep.html

Thanks, and sorry for the extra round-trips for such a simple patch.

KiBi.

Attachment: signature.asc
Description: Digital signature