bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Issues when func name is the same with an alias


From: Marc Herbert
Subject: Re: Issues when func name is the same with an alias
Date: Wed, 04 Aug 2010 12:03:16 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.7) Gecko/20100720 Fedora/3.1.1-1.fc13 Thunderbird/3.1.1

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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]