Project

General

Profile

« Previous | Next » 

Revision 8879

lib/util.sh: mysql_cmd (): interpret an empty string for $user, $database as if they were unset

View differences:

util.sh
210 210
	
211 211
	local var=ssh_dest; local_inv
212 212
	echo_run ${no_ssh_dest:+env }${ssh_dest:+ssh "$ssh_dest" }"${FUNCNAME[1]}" \
213
${server:+ --host="$server" }${user+--user="$user" } --password\
214
${password+="$password"} ${database+--databases "$database" --tables } "$@"
213
${server:+ --host="$server" }${user:+--user="$user" } --password\
214
${password+="$password"} ${database:+--databases "$database" --tables } "$@"
215 215
}
216 216

  
217 217
mysql ()

Also available in: Unified diff