From owner-svn-src-all@FreeBSD.ORG Sun May 11 02:00:49 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5D44C476; Sun, 11 May 2014 02:00:49 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4ADB12647; Sun, 11 May 2014 02:00:49 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s4B20ndt073239; Sun, 11 May 2014 02:00:49 GMT (envelope-from eadler@svn.freebsd.org) Received: (from eadler@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s4B20mHp073237; Sun, 11 May 2014 02:00:48 GMT (envelope-from eadler@svn.freebsd.org) Message-Id: <201405110200.s4B20mHp073237@svn.freebsd.org> From: Eitan Adler Date: Sun, 11 May 2014 02:00:48 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r265865 - head/usr.bin/look X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 May 2014 02:00:49 -0000 Author: eadler Date: Sun May 11 02:00:48 2014 New Revision: 265865 URL: http://svnweb.freebsd.org/changeset/base/265865 Log: look(1): add compability with other implementations. On other implementations 'look -a' uses an alternate dictionary. Since we don't have one, just ignore it. Modified: head/usr.bin/look/look.1 head/usr.bin/look/look.c Modified: head/usr.bin/look/look.1 ============================================================================== --- head/usr.bin/look/look.1 Sun May 11 01:58:56 2014 (r265864) +++ head/usr.bin/look/look.1 Sun May 11 02:00:48 2014 (r265865) @@ -103,6 +103,10 @@ in comparisons when the option was specified. This was incorrect and the current man page matches the historic implementation. +.Pp +The +.Fl a +flag is ignored for compability. .Sh SEE ALSO .Xr grep 1 , .Xr sort 1 Modified: head/usr.bin/look/look.c ============================================================================== --- head/usr.bin/look/look.c Sun May 11 01:58:56 2014 (r265864) +++ head/usr.bin/look/look.c Sun May 11 02:00:48 2014 (r265865) @@ -102,8 +102,11 @@ main(int argc, char *argv[]) file = _path_words; termchar = L'\0'; - while ((ch = getopt(argc, argv, "dft:")) != -1) + while ((ch = getopt(argc, argv, "adft:")) != -1) switch(ch) { + case 'a': + /* COMPATIBILITY */ + break; case 'd': dflag = 1; break;