Revision 9203
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/util.sh | ||
---|---|---|
242 | 242 |
if test "$stdout2stderr"; then stdout2stderr; fi |
243 | 243 |
if test "$stderr_is_errors"; then exec 2>&22; fi # ensure errors visible |
244 | 244 |
|
245 |
builtin command -- "$@" # -- so cmd name not treated as `command` option
|
|
245 |
exec -- "$@" # -- so cmd name not treated as `exec` option
|
|
246 | 246 |
) || return |
247 | 247 |
} |
248 | 248 |
|
Also available in: Unified diff
lib/sh/util.sh: command(): use exec instead of `builtin command` to avoid spawning an extra process (since a subshell is already open)