Revision 9206
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/util.sh | ||
---|---|---|
319 | 319 |
|
320 | 320 |
shadow_fd() # usage: prefix=# src=fd dir='[<>]' shadow_fd |
321 | 321 |
{ |
322 |
minor=1 echo_func
|
|
322 |
log++; echo_func
|
|
323 | 323 |
: "${prefix:?}" "${src:?}" "${dir:?}" |
324 |
log++; dest="$prefix$src" noclobber=1 set_fd
|
|
324 |
dest="$prefix$src" noclobber=1 set_fd |
|
325 | 325 |
} |
326 | 326 |
|
327 | 327 |
# convention: use fd 10/11/12 for command-specific alternate stdin/stdout/stderr |
Also available in: Unified diff
lib/sh/util.sh: shadow_fd(): instead of applying minor=1 (i.e. an additional log++) to echo_func and then log++ again separately to set_fd, just apply it to the entire function