Project

General

Profile

« Previous | Next » 

Revision 8975

lib/util.sh: always use '' rather than "" around alias definitions, to ensure that variables are evaluated at expand time rather than compile time

View differences:

util.sh
267 267
#### databases
268 268

  
269 269
# using prefixed connection vars
270
alias use_local="declare prefix=local_; import_vars"
271
alias use_remote="declare prefix=remote_; import_vars"
272
alias use_local_remote="use_local; use_remote"
270
alias use_local='declare prefix=local_; import_vars'
271
alias use_remote='declare prefix=remote_; import_vars'
272
alias use_local_remote='use_local; use_remote'
273 273

  
274 274
quote='"'
275 275

  
......
277 277

  
278 278
mk_esc_name () { set_var "$1"_esc "$(esc_name "${!1}")"; }
279 279

  
280
alias mk_schema_esc="declare schema_esc; mk_esc_name schema"
281
alias mk_table_esc="declare table_esc; mk_esc_name table"
280
alias mk_schema_esc='declare schema_esc; mk_esc_name schema'
281
alias mk_table_esc='declare table_esc; mk_esc_name table'
282 282

  
283 283
fi # load new aliases
284 284
if self_being_included; then

Also available in: Unified diff