From owner-freebsd-bugs Sun Dec 9 5:10: 5 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 5B33037B416 for ; Sun, 9 Dec 2001 05:10:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id fB9DA1f62444; Sun, 9 Dec 2001 05:10:01 -0800 (PST) (envelope-from gnats) Date: Sun, 9 Dec 2001 05:10:01 -0800 (PST) Message-Id: <200112091310.fB9DA1f62444@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Dag-Erling Smorgrav Subject: Re: bin/32603: pkg_info fails to find installed packages in some cases Reply-To: Dag-Erling Smorgrav Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/32603; it has been noted by GNATS. From: Dag-Erling Smorgrav To: Mark Stosberg Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: bin/32603: pkg_info fails to find installed packages in some cases Date: 09 Dec 2001 14:06:55 +0100 Mark Stosberg writes: > $cd /usr/ports/lang > $ pkg_info python* When you do this, your shell expands "python*" to the list of files and directories in the current directory whose names begins with "python". This is not pkg_info's doing; pkg_info simply looks in /var/db/pkg for directories whose names match one of its command-line arguments. If you use zsh, you can add the following line to your .zshrc to teach zsh how to perform argument expansion for pkg_info: compctl -g '/var/db/pkg/*(/:t)' pkg_info pkg_delete With this, when you press TAB or ^D on a command line that begins with "pkg_info" or "pkg_delete" followed by a space, zsh will look for completions in /var/db/pkg instead of the current directory. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message