From owner-freebsd-stable@FreeBSD.ORG Wed Sep 27 22:47:57 2006 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 76DC816A407 for ; Wed, 27 Sep 2006 22:47:57 +0000 (UTC) (envelope-from freebsduk@rowyerboat.com) Received: from heisenberg.zen.co.uk (heisenberg.zen.co.uk [212.23.3.141]) by mx1.FreeBSD.org (Postfix) with ESMTP id BDCFF43D70 for ; Wed, 27 Sep 2006 22:47:56 +0000 (GMT) (envelope-from freebsduk@rowyerboat.com) Received: from [82.70.166.86] (helo=[192.168.0.200]) by heisenberg.zen.co.uk with esmtp (Exim 4.50) id 1GSiC3-0004Ho-9S for stable@freebsd.org; Wed, 27 Sep 2006 22:47:55 +0000 Message-ID: <451AFEC6.1000404@rowyerboat.com> Date: Wed, 27 Sep 2006 23:44:22 +0100 From: Stephen Allen User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: stable@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Originating-Heisenberg-IP: [82.70.166.86] Cc: Subject: Fwd: Re: grep command not working as expected X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Sep 2006 22:47:57 -0000 A simple grep command, 'grep -vf patternfile inputfile' works on Linux, but the same command doesn't work on FreeBSD-6.1. To make it work I found I had to use -F to force the interpretation of fixed-strings. I don't know why it made a difference from Linux, and nothing in the man page appears to mention why. Kind regards, Stephen Allen --