Project

General

Profile

« Previous | Next » 

Revision 9688

lib/sh/util.sh: added alias_append(), similar to func_override() for aliases

View differences:

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