[Top][All Lists]

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

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

From: Chris F.A. Johnson
Subject: Re: Issues when func name is the same with an alias
Date: Thu, 5 Aug 2010 21:54:32 -0400 (EDT)
User-agent: Alpine 2.00 (LMD 1167 2008-08-23)

On Fri, 6 Aug 2010, Clark J. Wang wrote:

On Thu, Aug 5, 2010 at 4:06 PM, Marc Herbert <address@hidden> wrote:

Le 04/08/2010 15:29, Clark J. Wang a écrit :
I do not agree. Aliases are much simpler to use than functions.

Please provide examples.

The following is a part of my aliases. I'll have to write much more code if
I define them all as functions.

    This is "much more code":

F(){ find "$@"; }


alias F=find

I don't think functions are better than aliases here. Any idea?

    Many reasons why functions are generally better have already been

   Chris F.A. Johnson, <http://cfajohnson.com>
   Pro Bash Programming: Scripting the GNU/Linux Shell (2009, Apress)
   Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)

reply via email to

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