Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: how to refer to basename of $0
- X-seq: zsh-users 16149
- From: Tomasz Moskal <ramshackle.industries@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: how to refer to basename of $0
- Date: Fri, 29 Jul 2011 00:54:01 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:from:reply-to:to:date:in-reply-to:references:content-type :x-mailer:content-transfer-encoding:message-id:mime-version; bh=X1z6GcGIkiZrinx0M+1uzYCeGtmpOqtDD2+4iNSJzuE=; b=elDcArr5A5Rp37Oq1m+wVBifGoZu5Rno3+7yJloVZYBOz1Vx0GIAmARwLSECTz0yAD UTrm0ZX6kkR5PKTktcXkw9Hm/QSsJKkC1GSevgP0uD6HbskiYeSPbkmQtgW4xLzdJH4F 7VeF320y9zJq51wkdPEILyLYIsCWF9MjzqgnI=
- In-reply-to: <CADjGqHuKhx9A3HCUBjU4JgRsbj52s7DQ6HGewT=Y9uRMDGD-fg@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CADjGqHuKhx9A3HCUBjU4JgRsbj52s7DQ6HGewT=Y9uRMDGD-fg@mail.gmail.com>
- Reply-to: ramshackle.industries@xxxxxxxxx
On Thu, 2011-07-28 at 18:55 -0400, TJ Luoma wrote:
> I have a ".source" file that I use to setup some functions and
> variables for use in my scripts, and one of the things it does it
> this:
>
> NAME=`basename $0`
>
name="`basename $0`"
echo $name
Messages sorted by:
Reverse Date,
Date,
Thread,
Author