about summary refs log tree commit diff
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2006-02-20 21:34:04 +0000
committerClint Adams <clint@users.sourceforge.net>2006-02-20 21:34:04 +0000
commit21f98967bf7e41298ccc2935230c0dcaf092194d (patch)
tree38784c205315245648effa1a6e88e7017e592fdd
parent99384d8ab4186afcb3df21d27c1875fe0e162973 (diff)
downloadzsh-21f98967bf7e41298ccc2935230c0dcaf092194d.tar.gz
zsh-21f98967bf7e41298ccc2935230c0dcaf092194d.tar.xz
zsh-21f98967bf7e41298ccc2935230c0dcaf092194d.zip
22294: add GNU libc confstrings to getconf completion.
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Unix/Command/_getconf7
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 05de86bab..9024bebda 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,9 @@
 	* unposted: Completion/Debian/Command/.distfiles: add
 	_linda.
 
+	* 22294: Completion/Unix/Command/_getconf: add GNU libc
+	confstrings to getconf completion.
+
 2006-02-20  Peter Stephenson  <pws@csr.com>
 
 	* unposted: 4.3.0-dev-5.
diff --git a/Completion/Unix/Command/_getconf b/Completion/Unix/Command/_getconf
index 13eb51581..e8f9a1b3d 100644
--- a/Completion/Unix/Command/_getconf
+++ b/Completion/Unix/Command/_getconf
@@ -30,6 +30,13 @@ if [[ CURRENT -eq 2 ]]; then
 	  LFS64_CFLAGS LFS64_LDFLAGS LFS64_LIBS LFS64_LINTFLAGS \
 	  && 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 \