about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2009-11-15 17:42:09 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2009-11-15 17:42:09 +0000
commitd1c26dca908ab2dfeae382969994e3301d8d5325 (patch)
tree23a51e2ea57455df5e4ddbe50bdd7e15f2369608
parent6383453f57fb471960b603f2c387f502e7c7c77f (diff)
downloadzsh-d1c26dca908ab2dfeae382969994e3301d8d5325.tar.gz
zsh-d1c26dca908ab2dfeae382969994e3301d8d5325.tar.xz
zsh-d1c26dca908ab2dfeae382969994e3301d8d5325.zip
Benjamin R. Haskell: 27399: argument problem in env completion
-rw-r--r--ChangeLog4
-rw-r--r--Completion/Unix/Command/_env3
2 files changed, 4 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 6dbb99ba9..9fa62449c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,6 @@
 2009-11-15  Peter Stephenson  <p.w.stephenson@ntlworld.com>
 
-	* Benjamin R. Haskell: users/14565:
+	* Benjamin R. Haskell: users/14565, 27399:
 	Completion/Unix/Command/_env: argument problem.
 
 2009-11-11  Barton E. Schaefer  <schaefer@zsh.org>
@@ -12341,5 +12341,5 @@
 
 *****************************************************
 * This is used by the shell to define $ZSH_PATCHLEVEL
-* $Revision: 1.4811 $
+* $Revision: 1.4812 $
 *****************************************************
diff --git a/Completion/Unix/Command/_env b/Completion/Unix/Command/_env
index f38be61b7..96261bba8 100644
--- a/Completion/Unix/Command/_env
+++ b/Completion/Unix/Command/_env
@@ -3,9 +3,10 @@
 if _pick_variant gnu=Free\ Soft unix --version; then
   _arguments \
     '(--ignore-environment -i)'{-i,--ignore-environment}'[start with empty environment]' \
-    '*'{-u,--unset=}':env var to remove:compadd ${(k)parameters[(R)*export*]}' \
+    '*'{-u,--unset=}'[remove variable from the environment]:env var to remove:compadd ${(k)parameters[(R)*export*]}' \
     '--help[help]' \
     '--version[version]' \
+    '(-):command: _command_names -e' \
     '*::arguments: _normal'
 else
   _precommand