Revision 13286
Added by Aaron Marcuse-Kubitza almost 11 years ago
db.sh | ||
---|---|---|
303 | 303 |
echo_vars data2stdout |
304 | 304 |
|
305 | 305 |
if test "$verbose_"; then set -- --echo-all --echo-hidden "$@"; fi |
306 |
local redirs=("${redirs[@]}" '40<&0' ${can_redir:+"0<${stdin:-&20}" }'41>&1') |
|
306 |
if test "$can_redir"; then |
|
307 |
local redirs=("${redirs[@]}" '40<&0' "0<${stdin:-&20}" '41>&1') |
|
308 |
fi |
|
307 | 309 |
( |
308 | 310 |
# hide stack traces/DETAIL sections of error messages at verbosity <2 |
309 | 311 |
if ! log++ can_log; then echo '\set VERBOSITY terse'; fi |
Also available in: Unified diff
lib/sh/db.sh: psql(): only set redirs if can redirect