From owner-cvs-all Sun Jan 14 8:40:28 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 E317F37B402; Sun, 14 Jan 2001 08:40:06 -0800 (PST) Received: (from des@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f0EGe6w52156; Sun, 14 Jan 2001 08:40:06 -0800 (PST) (envelope-from des) Message-Id: <200101141640.f0EGe6w52156@freefall.freebsd.org> From: Dag-Erling Smorgrav Date: Sun, 14 Jan 2001 08:40:06 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sbin/sysctl sysctl.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG des 2001/01/14 08:40:06 PST Modified files: sbin/sysctl sysctl.c Log: Add a -N option that makes sysctl(8) print out just the variable names. Zsh users can add the following to their .zshrc for sysctl completion: function listsysctls { case $1 in *.*) set -A reply $(sysctl -AN ${1%.*}) ;; *) set -A reply $(sysctl -AN) ;; esac } compctl -K listsysctls sysctl While I'm here, brucify the getopt() switch. Revision Changes Path 1.30 +32 -11 src/sbin/sysctl/sysctl.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message