[24044] in Source-Commits

home help back first fref pref prev next nref lref last post

Re: /svn/athena r23647 - in trunk/athena/bin/bugme: . debian

daemon@ATHENA.MIT.EDU (Greg Price)
Sat Mar 28 18:42:22 2009

Date: Sat, 28 Mar 2009 18:41:37 -0400
From: Greg Price <price@MIT.EDU>
To: Robert Basch <rbasch@mit.edu>
Cc: Evan Broder <broder@mit.edu>, source-commits@mit.edu
Message-ID: <20090328224137.GP10376@vinegar-pot.mit.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <6815493C-5634-41A7-BE75-0E73C046544E@mit.edu>

On Sat, Mar 28, 2009 at 06:16:57PM -0400, Robert Basch wrote:
> On Mar 28, 2009, at 3:49 PM, Greg Price wrote:
>> grep -qixF $(hostname --fqdn)
>>  /afs/athena/system/config/quick/quickstations
>>
>> -F means literal match, -x means match the whole line.
>
> This won't match a file line that has leading or trailing white space;
> I'm not sure we care, but it looks like the old version handles this
> case.

You could use -w (match whole word) instead of -x if you wanted that
semantics.

But really I think we don't care; if anything, I'd rather let the code
assume the file format remains maximally precise.  If the format has
some reason to change in the future it's better anyway to consider the
change explicitly.

Greg

home help back first fref pref prev next nref lref last post