From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5812 invoked by alias); 19 Nov 2014 00:14:03 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 19407 Received: (qmail 21725 invoked from network); 19 Nov 2014 00:14:01 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=H1LSajOiOsu0hO1thMup2DSeWOFIouk2fAnb4FxSxKk=; b=Fu4YpROokhvgDHVqJNVoj5elNtDx3oYFvgNy7wLwaJ3riVeU3xKy3pbd+gu5vQqCpP n4p30lmigPQunxjbmuQHzstMEM46DioxUlQa/ZhihZp4LFNWziLkZ5XmHQW4WPdU4xry 0fMyqtHsqRk68A2tD0gGoOzF4kX4hOEPrNmNKveY4guZJ6Q0010JpGrellE3BoAo0eht 0zfY/uU9eZ6U1DI17SbOciZjbxs9NTKkKyFICXHCIzkeTFtba/SjSDfNev9KBVsjeM82 3XVwu2Pw6/knPoq/YvriDKje+xICd7XuzU3eP8UhXK6jUPw26I1joyzcc87plnWjXZi3 q+8A== X-Received: by 10.140.89.10 with SMTP id u10mr46583840qgd.70.1416356036953; Tue, 18 Nov 2014 16:13:56 -0800 (PST) MIME-Version: 1.0 From: TJ Luoma Date: Tue, 18 Nov 2014 19:13:16 -0500 Message-ID: Subject: Function or Alias - Does it matter? To: Zsh-Users List Content-Type: text/plain; charset=UTF-8 Is there any practical difference between making an alias or a function if they do the same thing? For example, these are (as far as I know) functionally identical: function timestamp_r { strftime "%Y/%m/%d at %-I:%M:%S %p" "$EPOCHSECONDS" } alias timestamp_r='strftime "%Y/%m/%d at %-I:%M:%S %p" "$EPOCHSECONDS"' Is there any reason to prefer one or the other? Tj