Le 04/08/2010 11:39, Clark J. Wang a écrit : > Seems like I must explicitly use the `function' keyword to define foo() for > this scenario. Is that the correct behavior?
The correct behaviour is simply not to use aliases, since they bring nothing to the table compared to functions. Have a look at this: http://thread.gmane.org/gmane.comp.shells.bash.bugs/13865/focus=13901 About the "function" keyword have a look at the discussion two days ago.