Project

General

Profile

« Previous | Next » 

Revision 8700

lib/util.run: echo_export (): run the export builtin using `builtin` to avoid recursively calling any export alias or function defined by the user (e.g. `alias export=echo_export`. this causes util.run to be idempotent, such that it can be included multiple times without causing problems due to the redefinition of functions, vars, etc.

View differences:

lib/util.run
51 51

  
52 52
echo_export ()
53 53
{
54
	export "$@"
54
	builtin export "$@"
55 55
	echo_vars "$@"
56 56
}
57 57

  

Also available in: Unified diff