Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Function installation
- X-seq: zsh-workers 6510
- From: Wayne Davison <wayne@xxxxxxxxx>
- To: Peter Stephenson <pws@xxxxxxxxxxxxxxxxx>
- Subject: Re: Function installation
- Date: Mon, 7 Jun 1999 09:41:38 -0700 (PDT)
- Cc: Zsh hackers list <zsh-workers@xxxxxxxxxxxxxx>
- In-reply-to: <9906070858.AA23516@xxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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..
Messages sorted by:
Reverse Date,
Date,
Thread,
Author