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

On Thu, Aug 5, 2010 at 4:06 PM, Marc Herbert <marc.herb...@gmail.com> 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 "$@"; }

    than:

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
    given.

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

Reply via email to