Revision 9688
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/util.sh | ||
---|---|---|
96 | 96 |
function run_cmd() { "$@"; } |
97 | 97 |
alias run_cmd='"run_cmd" ' # last space alias-expands next word |
98 | 98 |
|
99 |
alias_append() { eval $(alias "$1")'"$2"'; } # usage: alias_append alias '; cmd' |
|
99 | 100 |
|
101 |
|
|
100 | 102 |
#### functions |
101 | 103 |
|
102 | 104 |
kw_params() # usage: func() { kw_params param_var...; }; ...; param_var=... cmd |
Also available in: Unified diff
lib/sh/util.sh: added alias_append(), similar to func_override() for aliases