Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Can $_ substitute $0 when nofunctionargzero
- X-seq: zsh-users 21636
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Can $_ substitute $0 when nofunctionargzero
- Date: Thu, 9 Jun 2016 20:33:39 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=1T0He5DK/3/EoqRzMl56i1GHkst8nynOsXCGSJBulvM=; b=Xc+aBnzw77pg5qJNMuwmPnwvlV7nsM2pCME5vP3M4BbbYF9WDgbJzIBCI41rbQPKvB 4/kPSQ+AkN30yKNn+iqdeQlUJSUz5coZSpDdafSadB4VEldHweyOxbQPhrm/8UzBBzu/ dRaMgK2zlG6lBApyKv2AoOzqPZyiv1lUaDrqMKP1X0pA++oEjQc0R1j0UIoMgU5PF25P mOyYKrXmTZlYeZPwFHz0qn9f0pjJ9bJEremtfUs+pLjSKQTE3pBcuaFyfh0r1AH3t2fe lBpwEBJMUQ+FokkYY+VHboTuFjqeekKX4mgvro5dHZHOVR0zxwOnFOnP38GI9bbU4MNj ctxA==
- In-reply-to: <CAKc7PVBXdgRVMUrZwvDK93BHycPYC7zeafg0=TNmqYEA=xdn+g@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: <CAKc7PVB4y+dw+0Ox76_YTrzwT1C9sRp2=iX1-JkbPQEUQqe77w@mail.gmail.com> <CAKc7PVBXdgRVMUrZwvDK93BHycPYC7zeafg0=TNmqYEA=xdn+g@mail.gmail.com>
Hello,
I read through discussion on ZSH_SCRIPT and ZSH_ARGZERO. Could there
be one more parameter added? Basically, it's hard to make a software
package without knowing where sourced file is located. A good example
is zsh-syntax-highlighting. It needs functionargzero to be able to do
source $0:h/highlighters/main/main-highlighter.zsh and other sources.
An alternative is a variable, which is $ZSH_HIGHLIGHT_HIGHLIGHTERS_DIR
in this case.
This is for emulate sh and ksh, where functionargzero is unset. Would
we expect that some day software packages for shells with ksh
emulation will be created? It would be interesting I think.
Best regards,
Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author