about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2001-06-13 10:38:10 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2001-06-13 10:38:10 +0000
commit9c9352cc764f24c6069a4e87f81c5242de28d8f2 (patch)
tree440d2949d653003d4b87d03e18d1b81dd443f15b
parente10c11979420cc9455389cb6dab42c1d1babca22 (diff)
downloadzsh-9c9352cc764f24c6069a4e87f81c5242de28d8f2.tar.gz
zsh-9c9352cc764f24c6069a4e87f81c5242de28d8f2.tar.xz
zsh-9c9352cc764f24c6069a4e87f81c5242de28d8f2.zip
don't complete read-only parameters on the left side of an assignment (14896)
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Zsh/Type/_command_names2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 20e7a3c8e..f0bf1acf1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-06-13  Oliver Kiddle  <opk@zsh.com>
+
+	* 14896: Completion/Zsh/Type/_command_names: don't complete read-only
+	parameters on the left side of an assignment
+
 2001-06-13  Peter Stephenson  <pws@csr.com>
 
 	* unposted: Completion/compinstall: pointed out by Bart:  bad
diff --git a/Completion/Zsh/Type/_command_names b/Completion/Zsh/Type/_command_names
index 844f190a6..cf4088295 100644
--- a/Completion/Zsh/Type/_command_names
+++ b/Completion/Zsh/Type/_command_names
@@ -22,7 +22,7 @@ else
     'aliases:alias:compadd -k aliases'
     'reserved-words:reserved word:compadd -k reswords'
     'jobs:: _jobs -t'
-    'parameters:: _parameters -qS= -r "\n\t\- =["'
+    'parameters:: _parameters -g "^*readonly*" -qS= -r "\n\t\- =["'
   )
 fi