From owner-svn-src-head@FreeBSD.ORG Sun Jul 25 18:57:49 2010 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1915D1065674; Sun, 25 Jul 2010 18:57:49 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 32A7F8FC0C; Sun, 25 Jul 2010 18:57:49 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o6PIvmXf031486; Sun, 25 Jul 2010 18:57:48 GMT (envelope-from gabor@svn.freebsd.org) Received: (from gabor@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o6PIvmoS031484; Sun, 25 Jul 2010 18:57:48 GMT (envelope-from gabor@svn.freebsd.org) Message-Id: <201007251857.o6PIvmoS031484@svn.freebsd.org> From: Gabor Kovesdan Date: Sun, 25 Jul 2010 18:57:48 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r210479 - head/usr.bin/grep X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jul 2010 18:57:49 -0000 Author: gabor Date: Sun Jul 25 18:57:48 2010 New Revision: 210479 URL: http://svn.freebsd.org/changeset/base/210479 Log: - Fix -l and -L by really surpressing output and just showing filenames Submitted by: swell.k@gmail.com Approved by: delphij (mentor) Modified: head/usr.bin/grep/util.c Modified: head/usr.bin/grep/util.c ============================================================================== --- head/usr.bin/grep/util.c Sun Jul 25 18:32:59 2010 (r210478) +++ head/usr.bin/grep/util.c Sun Jul 25 18:57:48 2010 (r210479) @@ -343,7 +343,7 @@ procline(struct str *l, int nottext) return (c); /* Binary file */ /* Dealing with the context */ - if ((tail || c) && !cflag && !qflag) { + if ((tail || c) && !cflag && !qflag && !lflag && !Lflag) { if (c) { if (!first && !prev && !tail && Aflag) printf("--\n");