Revision 8884
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/util.sh: renamed echo_func_ () back to echo_func () and instead add an unalias statement before the if statement containing the function definition. this is necessary because if statements are "compound commands", which have aliases expanded when their definition is read (i.e. at the beginning of the if statement, for the entire if statement), not when they are executed, and any aliases for function names in them need to be unaliased before the if statement containing the function definition. this is necessary even if the if statement is not executed, because the expansion of such aliases will cause syntax errors in the parsing of the if statement itself.
- note that this is preferable to the previous approach, because it causes bash to automatically fall back to the function in contexts where the alias is not usable (e.g. dynamic command names). **
- added
- modified
- copied
- renamed
- deleted