[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 <Marc.Herbert@gmail.com> 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.
>
- Issues when func name is the same with an alias, Clark J. Wang, 2010/08/04
- Re: Issues when func name is the same with an alias, Marc Herbert, 2010/08/04
- Re: Issues when func name is the same with an alias, Eric Blake, 2010/08/04
- Re: Issues when func name is the same with an alias,
Clark J. Wang <=
- Re: Issues when func name is the same with an alias, Marc Herbert, 2010/08/05
- Re: Issues when func name is the same with an alias, Clark J. Wang, 2010/08/05
- Re: Issues when func name is the same with an alias, Chris F.A. Johnson, 2010/08/05
- Re: Issues when func name is the same with an alias, Clark J. Wang, 2010/08/05
- Re: Issues when func name is the same with an alias, Marc Herbert, 2010/08/06
Re: Issues when func name is the same with an alias, Bernd Eggink, 2010/08/04