about summary refs log tree commit diff
path: root/Completion/Unix/Command
diff options
context:
space:
mode:
authorAdam Spiers <adamspiers@users.sourceforge.net>2001-10-22 14:03:17 +0000
committerAdam Spiers <adamspiers@users.sourceforge.net>2001-10-22 14:03:17 +0000
commit9a310a83c3789c1e2ebc301dbd5fb30ffba0be8f (patch)
tree6a23ffd243a5dd1ad44c113f10e178ec18b73440 /Completion/Unix/Command
parenta6981898435ad1ea9bcbb4540c7966048b755470 (diff)
downloadzsh-9a310a83c3789c1e2ebc301dbd5fb30ffba0be8f.tar.gz
zsh-9a310a83c3789c1e2ebc301dbd5fb30ffba0be8f.tar.xz
zsh-9a310a83c3789c1e2ebc301dbd5fb30ffba0be8f.zip
16092: Completion/Unix/Command/_mysql_utils: don't override settings in ~/.my.cnf
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r--Completion/Unix/Command/_mysql_utils6
1 files changed, 3 insertions, 3 deletions
diff --git a/Completion/Unix/Command/_mysql_utils b/Completion/Unix/Command/_mysql_utils
index ae7ffe72c..c613583d5 100644
--- a/Completion/Unix/Command/_mysql_utils
+++ b/Completion/Unix/Command/_mysql_utils
@@ -14,9 +14,9 @@ _mysql_get_identity () {
   _mysql_host=${opt_args[-h]-$opt_args[--host]}
 
   _mysql_params=(
-                 ${_mysql_user+"--user=$_mysql_user"}
-                 ${_mysql_host+"--host=$_mysql_host"}
-                 ${_mysql_port+"--port=$_mysql_port"}
+                 ${_mysql_user:+"--user=$_mysql_user"}
+                 ${_mysql_host:+"--host=$_mysql_host"}
+                 ${_mysql_port:+"--port=$_mysql_port"}
                 )
 }