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: Clark J. Wang
Subject: Re: Issues when func name is the same with an alias
Date: Wed, 4 Aug 2010 22:29:20 +0800

On Wed, Aug 4, 2010 at 7:03 PM, Marc Herbert <address@hidden> wrote:

> 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
>
> I do not agree. Aliases are much simpler to use than functions. I use
almost all (51 out of 52) the single letters ([:alpha:]) to define aliases.
I would not like a shell which has no aliases support.

>
> 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]