|
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 <Marc.Herbert@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 ifI 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)
[Prev in Thread] | Current Thread | [Next in Thread] |