Project

General

Profile

« Previous | Next » 

Revision 9236

lib/sh/util.sh: added local_export alias, which combines the effects of local and export

View differences:

util.sh
48 48
unexport() { export -n "$@"; }
49 49
	# `declare +x` won't work because it defines the var if it isn't set
50 50

  
51
alias local_export='declare -x' # combines effects of local and export
52

  
51 53
get_prefix_vars() { : "${prefix:?}"; eval echo '${!'$prefix'*}'; }
52 54

  
53 55
# usage: local prefix=..._; import_vars

Also available in: Unified diff