zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@ibmth.df.unipi.it>
To: zsh-workers@sunsite.auc.dk (Zsh hackers list)
Subject: Re: Function installation
Date: Mon, 07 Jun 1999 10:58:38 +0200	[thread overview]
Message-ID: <9906070858.AA23516@ibmth.df.unipi.it> (raw)
In-Reply-To: "Wayne Davison"'s message of "Mon, 07 Jun 1999 02:06:20 DFT." <Pine.GSO.4.10.9906070138450.10718-100000@house.clari.net>

Wayne Davison wrote:
> On Mon, 7 Jun 1999, Peter Stephenson wrote:
> > I've written a patch for installing the functions from the source
> > distribution
> 
> That reminds me.  Has anyone else run into a problem using compinit
> with the "no_unset" option enabled?  After getting errors on lines
> 57 and 53, I just unset the option before the sourcing of compinit
> in my zshrc file, and reset it after it was done.

After the patch, compinit seems to run with zsh -f and setopt nounset.

> [I'm only just now finding some time to try out the new completion
> stuff in 3.1.x, and so far (with just a little bit of twiddling) I
> haven't gotten it to work.  I'll have more time to play with it
> later on.]

Completion seemed to work OK, too, after the above, but it's possible
(likely, I would say) some of the functions aren't very happy with
nounset.

--- Completion/Core/compinit.unset	Fri Jun  4 15:19:08 1999
+++ Completion/Core/compinit	Mon Jun  7 10:54:15 1999
@@ -50,7 +50,7 @@
 _i_fdir=''
 _i_dumpfile=''
 _i_autodump=0
-while [[ $1 = -[df] ]]; do
+while [[ $# -gt 0 && $1 = -[df] ]]; do
   if [[ "$1" = -d ]]; then
     _i_autodump=1
     shift

-- 
Peter Stephenson <pws@ibmth.df.unipi.it>       Tel: +39 050 844536
WWW:  http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy


  reply	other threads:[~1999-06-07  9:27 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 [this message]
1999-06-07 16:41     ` Wayne Davison
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=9906070858.AA23516@ibmth.df.unipi.it \
    --to=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).