Revision 8833
Added by Aaron Marcuse-Kubitza about 11 years ago
lib/runscripts/local.run | ||
---|---|---|
15 | 15 |
echo_run mysql_bien --database="$schema" --verbose "$@" |
16 | 16 |
} |
17 | 17 |
|
18 |
psql () # usage: ([file=...] [dir=...]; self)
|
|
18 |
psql () # usage: [file=...] [dir=...] self
|
|
19 | 19 |
{ |
20 | 20 |
echo_func "$@" |
21 | 21 |
local dir="$dir" |
lib/util.sh | ||
---|---|---|
24 | 24 |
|
25 | 25 |
set_var () { eval "$1"'="$2"'; } |
26 | 26 |
|
27 |
join () { local IFS="$delim"; echo "$*"; } # usage: (delim=...; join elems...)
|
|
27 |
join () { local IFS="$delim"; echo "$*"; } # usage: delim=... join elems...
|
|
28 | 28 |
|
29 | 29 |
reverse () # usage: array=($(reverse args...)) |
30 | 30 |
{ |
Also available in: Unified diff
*{.sh,run}: commands that take named arguments: usage messages: changed to use simpler bash syntax for specifying command-specific env vars, which does not require a subshell ("The environment for any simple command or function may be augmented temporarily by prefixing it with parameter assignments" <http://www.gnu.org/software/bash/manual/bash.html#Environment>)