Project

General

Profile

« Previous | Next » 

Revision 9203

lib/sh/util.sh: command(): use exec instead of `builtin command` to avoid spawning an extra process (since a subshell is already open)

View differences:

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