[24042] in Source-Commits
Re: /svn/athena r23647 - in trunk/athena/bin/bugme: . debian
daemon@ATHENA.MIT.EDU (Greg Price)
Sat Mar 28 15:50:32 2009
Date: Sat, 28 Mar 2009 15:49:48 -0400
From: Greg Price <price@MIT.EDU>
To: Evan Broder <broder@mit.edu>
Cc: Robert Basch <rbasch@mit.edu>, source-commits@mit.edu
Message-ID: <20090328194947.GO10376@vinegar-pot.mit.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <5C96D3F3-40A5-4AF0-B986-E87583E8992E@mit.edu>
On Sat, Mar 28, 2009 at 12:06:11PM -0400, Robert Basch wrote:
> On Mar 27, 2009, at 7:34 PM, Evan Broder wrote:
>> +grep -iq $(hostname --fqdn) /afs/athena/system/config/quick/
>> quickstations
>
> The grep is not right here; the search pattern is not anchored, for one
> thing, so will match on hostnames that are substrings of quickstation
> names, and will include '.'s that match any character (though the
> latter is unlikely to cause a problem in practice).
grep -qixF $(hostname --fqdn)
/afs/athena/system/config/quick/quickstations
-F means literal match, -x means match the whole line.
Greg