Revision 9194
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/make.sh | ||
---|---|---|
23 | 23 |
# usage: set_make_vars; to_target cmd... |
24 | 24 |
alias to_target='stdout="$target" to_file ' # last space alias-expands next word |
25 | 25 |
|
26 |
make() { echo_func; stdout2stderr=1 limit_stderr=1 self "$@"; }
|
|
26 |
make() { echo_func; limit_stdout=1 self "$@"; }
|
|
27 | 27 |
|
28 | 28 |
if false; then ## usage: |
29 | 29 |
inline_make 10<<'EOF' |
lib/sh/archives.sh | ||
---|---|---|
7 | 7 |
|
8 | 8 |
zip() |
9 | 9 |
{ |
10 |
stdout2stderr=1 limit_stderr=1 try self "$@"
|
|
10 |
limit_stdout=1 try self "$@"
|
|
11 | 11 |
ignore 12 # "zip has nothing to do" (`man zip`) |
12 | 12 |
end_try |
13 | 13 |
} |
14 | 14 |
|
15 |
unzip() { stdout2stderr=1 limit_stderr=1 self "$@"; }
|
|
15 |
unzip() { limit_stdout=1 self "$@"; }
|
|
16 | 16 |
|
17 | 17 |
set_inv force |
18 | 18 |
alias zip_newer='zip ${no_force:+-u }' |
lib/sh/db.sh | ||
---|---|---|
64 | 64 |
|
65 | 65 |
set -- ${database:+--database="$database" }--column-names "$@" |
66 | 66 |
if test "$output_data"; then echo_stdin|mysql_cmd --batch "$@" |
67 |
else stdout2stderr=1 limit_stderr=1 mysql_cmd --verbose "$@"
|
|
67 |
else limit_stdout=1 mysql_cmd --verbose "$@"
|
|
68 | 68 |
fi |
69 | 69 |
} |
70 | 70 |
|
Also available in: Unified diff
*{.sh,run}: use new limit_stdout=1 instead of stdout2stderr=1 limit_stderr=1