Project

General

Profile

« Previous | Next » 

Revision 12207

lib/sh/util.sh: local_*array: don't need -a because that it's an array is autodetected by the ()

View differences:

trunk/lib/sh/util.sh
67 67

  
68 68
#### vars
69 69

  
70
alias local_array='declare -a'
70
alias local_array='declare'
71 71
	# `local` does not support arrays in older versions of bash
72
	# don't need -a because that it's an array is autodetected by the ()
72 73

  
73 74
set_var() { eval "$1"'="$2"'; }
74 75

  
......
85 86

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

  
88
alias local_export_array='declare -ax'
89
alias local_export_array='declare -x'
89 90
	# `export` does not support arrays in older versions of bash
91
	# don't need -a because that it's an array is autodetected by the ()
90 92

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

Also available in: Unified diff