From: Wayne Davison <wayne@clari.net>
To: Peter Stephenson <pws@ibmth.df.unipi.it>
Cc: Zsh hackers list <zsh-workers@sunsite.auc.dk>
Subject: Re: Function installation
Date: Mon, 7 Jun 1999 09:41:38 -0700 (PDT) [thread overview]
Message-ID: <Pine.GSO.4.10.9906070930030.19914-100000@house.clari.net> (raw)
In-Reply-To: <9906070858.AA23516@ibmth.df.unipi.it>
On Mon, 7 Jun 1999, Peter Stephenson wrote:
> --- Completion/Core/compinit.unset Fri Jun 4 15:19:08 1999
> +++ Completion/Core/compinit Mon Jun 7 10:54:15 1999
That fixes the main loop, but not a trailing -d option:
Index: Completion/Core/compinit
--- zsh-3.1.5-pws-20/Completion/Core/compinit Mon Jun 7 09:29:09 1999
+++ ./Completion/Core/compinit Mon Jun 7 09:28:40 1999
@@ -54,7 +54,7 @@
if [[ "$1" = -d ]]; then
_i_autodump=1
shift
- if [[ -n "$1" && "$1" != -[df] ]]; then
+ if [[ $# -gt 0 && "$1" != -[df] ]]; then
_i_dumpfile="$1"
shift
fi
I think a better fix would be to make "no_unset" only apply to typed
commands, not scripts (that's the only place I'm interested in it).
Hmm, I wonder if it would be possible to kludge that up using preexec
and precmd?
Another potential fix would be to have an easy way to set a local,
per-script option (not per-function). If that's possible, I didn't
see it.
..wayne..
next prev parent reply other threads:[~1999-06-07 16:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-06-07 7:53 Peter Stephenson
1999-06-07 9:06 ` Wayne Davison
1999-06-07 8:58 ` Peter Stephenson
1999-06-07 16:41 ` Wayne Davison [this message]
1999-06-07 9:37 ` Andrej Borsenkow
1999-06-07 12:22 ` Peter Stephenson
1999-06-07 13:14 ` Andrej Borsenkow
1999-06-07 12:57 Sven Wischnowsky
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=Pine.GSO.4.10.9906070930030.19914-100000@house.clari.net \
--to=wayne@clari.net \
--cc=pws@ibmth.df.unipi.it \
--cc=zsh-workers@sunsite.auc.dk \
/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).