From: Nguyen Thai Ngoc Duy Date: Thu, 18 Sep 2008 16:20:57 GMT Subject: Re: [PATCH] generate-cmdlist.sh: avoid selecting synopsis at wrong place Message-ID: In-Reply-To: On 9/18/08, Santi Béjar wrote: > On Thu, Sep 18, 2008 at 6:01 PM, Nguyễn Thái Ngọc Duy wrote: > > In "common" man pages there is luckily no "NAME" anywhere except at > > beginning of documents. If there is another "NAME", sed could > > mis-select it and lead to common-cmds.h corruption. So better nail it > > at beginning of line, which would reduce corruption chance. > > > > > You could narrow it even more with /^NAME$/ That may miss "^NAME $", which is hard to recognize by eyes, although I'm pretty sure there is no trailing spaces in git. It's up to Junio to decide how strict he wants. -- Duy