Project

General

Profile

« Previous | Next » 

Revision 12205

lib/sh/util.sh: added local_export_array

View differences:

trunk/lib/sh/util.sh
85 85

  
86 86
alias local_export='declare -x' # combines effects of local and export
87 87

  
88
alias local_export_array='declare -ax'
89
	# `export` does not support arrays in older versions of bash
90

  
88 91
# to make export only visible locally: local var="$var"; export var
89 92
# within cmd: var="$var" cmd...
90 93

  

Also available in: Unified diff