Revision 9271
Added by Aaron Marcuse-Kubitza over 11 years ago
db.sh | ||
---|---|---|
35 | 35 |
fi # load new aliases |
36 | 36 |
if self_being_included; then |
37 | 37 |
|
38 |
# auto-adds connection/login opts when specified |
|
39 | 38 |
# usage: mysql*() { ...; mysql_cmd "$@"; } (with alias) |
40 | 39 |
function mysql_cmd() # usage: mysql*() { ...; mysql_cmd cmd "$@"; } |
40 |
# auto-adds connection/login opts when specified |
|
41 | 41 |
{ |
42 | 42 |
echo_func |
43 | 43 |
local cmd="$1"; shift |
Also available in: Unified diff
*{.sh,run}: put doc comment on next line when possible, so that the function name always comes before it