From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11471 invoked by alias); 17 Dec 2013 17:16:50 -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: 18241 Received: (qmail 17986 invoked from network); 17 Dec 2013 17:16:44 -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=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 From: Bart Schaefer Message-id: <131217091556.ZM8432@torch.brasslantern.com> Date: Tue, 17 Dec 2013 09:15:56 -0800 In-reply-to: Comments: In reply to zzapper "Can an alias ever have a dynamic element?" (Dec 17, 3:20pm) References: X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: Can an alias ever have a dynamic element? MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Dec 17, 3:20pm, zzapper wrote: } } I have an alias which creates a tar with a date component in its name } that date is however evaluated when the shell is created which could } have been a few days ago. The easy solution is to create a script but } is they any alternative? This usually means you've created the alias with something like: alias thingy="foo $(date)" when what you need are single rather than double quotes: alias thingy='foo $(date)' Always best if you actually show us an example rather than attempt to describe it in prose.