Revision 9187
Added by Aaron Marcuse-Kubitza over 11 years ago
util.sh | ||
---|---|---|
243 | 243 |
can_log |
244 | 244 |
} |
245 | 245 |
alias echo_func='"echo_func" "$@" && indent || true' |
246 |
alias echo_minor_func='minor=1 echo_func' |
|
247 | 246 |
|
248 | 247 |
## vars |
249 | 248 |
|
... | ... | |
331 | 330 |
|
332 | 331 |
shadow_fd() # usage: prefix=# src=fd dir='[<>]' shadow_fd |
333 | 332 |
{ |
334 |
echo_minor_func
|
|
333 |
minor=1 echo_func
|
|
335 | 334 |
: "${prefix:?}" "${src:?}" "${dir:?}" |
336 | 335 |
dest="$prefix$src" noclobber=1 set_fd |
337 | 336 |
} |
Also available in: Unified diff
lib/sh/util.sh: use `minor=1 echo_func` instead of echo_minor_func because the syntax is simple enough that you don't need a separate alias for it