From: Bart Schaefer <schaefer@brasslantern.com>
To: Sebastian Gniazdowski <sgniazdowski@gmail.com>
Cc: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: Can this snippet be further improved?
Date: Fri, 28 Jul 2023 15:17:24 -0700 [thread overview]
Message-ID: <CAH+w=7atdLvprQrvBm6gLKOx8e=GFQAFEuGCSfyU8Y+8-UM6ug@mail.gmail.com> (raw)
In-Reply-To: <CAKc7PVD7Ha9QoQzd2nmLBMiOwQhe5STqX17a98py2neFJPdJ+Q@mail.gmail.com>
On Fri, Jul 28, 2023 at 3:09 PM Sebastian Gniazdowski
<sgniazdowski@gmail.com> wrote:
>
> ZERO is a $0-like variable however provided by the plugin manager.
>
> I think that the returning of origin source file is a plus – one can
> throw in the 0="…" snippet in any kind of file, hash-bang script,
> sourced script and autoload function and always get expected result.
Seems like you'd do less potential damage to other things that might
examine $0 if you overloaded $ZSH_SCRIPT instead, here.
prev parent reply other threads:[~2023-07-28 22:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-28 14:53 Sebastian Gniazdowski
2023-07-28 15:06 ` Sebastian Gniazdowski
2023-07-28 21:37 ` Bart Schaefer
2023-07-29 3:09 ` Sebastian Gniazdowski
2023-07-28 22:17 ` Bart Schaefer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAH+w=7atdLvprQrvBm6gLKOx8e=GFQAFEuGCSfyU8Y+8-UM6ug@mail.gmail.com' \
--to=schaefer@brasslantern.com \
--cc=sgniazdowski@gmail.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).