Project

General

Profile

« Previous | Next » 

Revision 9093

lib/sh/util.sh: import_vars alias and applicable aliases that use it: documented that when used inside another alias 2+ levels deep, it must be run inside a function. this is due to a strange bug in bash where $() expressions in 2-level aliases produce a syntax error when the alias is expanded outside a function.

View differences:

db.sh
6 6
# using prefixed connection vars
7 7
alias use_local='declare prefix=local_; import_vars'
8 8
alias use_remote='declare prefix=remote_; import_vars'
9
alias use_local_remote='use_local; use_remote'
9
alias use_local_remote='use_local; use_remote' # *must* be run inside a function
10 10

  
11 11
quote='"'
12 12

  

Also available in: Unified diff