Revision 11413
Added by Aaron Marcuse-Kubitza about 11 years ago
util.sh | ||
---|---|---|
120 | 120 |
function run_cmd() { "$@"; } |
121 | 121 |
alias run_cmd='"run_cmd" ' # last space alias-expands next word |
122 | 122 |
|
123 |
alias_append() { eval $(alias "$1")'"$2"'; } # usage: alias_append alias '; cmd'
|
|
123 |
alias_append() { eval "$(alias "$1")"'"$2"';} #usage: alias_append alias '; cmd'
|
|
124 | 124 |
|
125 | 125 |
|
126 | 126 |
#### commands |
Also available in: Unified diff
bugfix: lib/sh/util.sh: alias_append(): need to enclose $(alias) call in "" because its result may contain separator chars (i.e. whitespace) that will be parsed incorrectly. this appears to only be a bug when runscripts are run as shell-includes, with a leading ".".