From owner-cvs-all Thu Feb 8 9:44:24 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 2527637B491; Thu, 8 Feb 2001 09:44:03 -0800 (PST) Received: (from sobomax@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f18Hi3B92040; Thu, 8 Feb 2001 09:44:03 -0800 (PST) (envelope-from sobomax) Message-Id: <200102081744.f18Hi3B92040@freefall.freebsd.org> From: Maxim Sobolev Date: Thu, 8 Feb 2001 09:44:03 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/pkg_install/info info.h main.c perform.c pkg_info.1 X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG sobomax 2001/02/08 09:44:02 PST Modified files: usr.sbin/pkg_install/info info.h main.c perform.c pkg_info.1 Log: - By default treat supplied arguments as a shell globs to be matched against names of installed packages; - add new `-G' option to disable glob matching and revert to previous behaviour (I have no idea why this could be necessary, though); - add a new `-x' option, which instructs pkg_info(1) to treat supplied arguments as a regular expressions. For example: $ pkg_info foo\* - displays information about all packages whose names start from foo $ pkg_info -G foo\*-1.1 - displays information about package named "foo*-1.1" $ pkg_info -x ^foo.\* - displays information about all packages whose names start from foo Original idea submitted by: Edwin Groothuis (bin/24695) Reviewed by: jkh, roam Approved by: jkh Revision Changes Path 1.17 +7 -1 src/usr.sbin/pkg_install/info/info.h 1.29 +32 -20 src/usr.sbin/pkg_install/info/main.c 1.34 +136 -21 src/usr.sbin/pkg_install/info/perform.c 1.35 +19 -2 src/usr.sbin/pkg_install/info/pkg_info.1 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message