From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10344 invoked from network); 1 Feb 2005 20:27:37 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 1 Feb 2005 20:27:37 -0000 Received: (qmail 87189 invoked from network); 1 Feb 2005 20:27:25 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 1 Feb 2005 20:27:25 -0000 Received: (qmail 8946 invoked by alias); 1 Feb 2005 20:27:23 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 20773 Received: (qmail 8932 invoked from network); 1 Feb 2005 20:27:22 -0000 Received: from unknown (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 1 Feb 2005 20:27:22 -0000 Received: (qmail 86869 invoked from network); 1 Feb 2005 20:26:46 -0000 Received: from acolyte.scowler.net (216.254.112.45) by a.mx.sunsite.dk with SMTP; 1 Feb 2005 20:26:42 -0000 Received: by acolyte.scowler.net (Postfix, from userid 1000) id 248F77004A; Tue, 1 Feb 2005 15:26:41 -0500 (EST) Date: Tue, 1 Feb 2005 15:26:41 -0500 From: Clint Adams To: zsh-workers@sunsite.dk Subject: PATCH: _getconf additions Message-ID: <20050201202641.GA5678@scowler.net> Mail-Followup-To: zsh-workers@sunsite.dk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6+20040907i X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=AWL,BAYES_00,UPPERCASE_25_50 autolearn=no version=3.0.2 X-Spam-Hits: -2.6 This isn't complete. It didn't seem wortwhile to do _pick_variant for the two GNU vars. Index: Completion/Unix/Command/_getconf =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_getconf,v retrieving revision 1.1 diff -u -r1.1 _getconf --- Completion/Unix/Command/_getconf 2 Apr 2001 11:51:35 -0000 1.1 +++ Completion/Unix/Command/_getconf 1 Feb 2005 20:08:13 -0000 @@ -3,7 +3,7 @@ local expl ret=1 if [[ CURRENT -eq 2 ]]; then - _tags syswideconfig pathconfig standardsconfig + _tags syswideconfig pathconfig standardsconfig confstring while _tags; do _requested -V syswideconfig expl 'systemwide configuration variables' \ @@ -23,6 +23,13 @@ POSIX2_C_DEV POSIX2_FORT_DEV POSIX2_FORT_RUN POSIX2_LOCALEDEF \ POSIX2_SW_DEV _XOPEN_VERSION && ret=0 + _requested -V confstring \ + expl 'configuration-dependent string variables' \ + compadd -S '' PATH GNU_LIBC_VERSION GNU_LIBPTHREAD_VERSION \ + LFS_CFLAGS LFS_LDFLAGS LFS_LIBS LFS_LINTFLAGS \ + LFS64_CFLAGS LFS64_LDFLAGS LFS64_LIBS LFS64_LINTFLAGS \ + && ret=0 + _requested pathconfig && while _next_label -V pathconfig expl 'system path configuration variables'; do compadd "$expl[@]" -S '' PIPE_BUF _POSIX_CHOWN_RESTRICTED \