Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: _mysql_get_identity overwriting .my.cnf settings



This is pretty self-explanatory.  Does that look OK, Sven?

cvs server: Diffing Completion/Unix/Command
Index: Completion/Unix/Command/_mysql_utils
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_mysql_utils,v
retrieving revision 1.1
diff -u -r1.1 _mysql_utils
--- Completion/Unix/Command/_mysql_utils	2001/04/02 11:58:16	1.1
+++ Completion/Unix/Command/_mysql_utils	2001/10/21 18:34:48
@@ -14,9 +14,9 @@
   _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"}
                 )
 }
 



Messages sorted by: Reverse Date, Date, Thread, Author