zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: PATCH: Re: _configure cacheing
Date: Thu, 27 Apr 2000 14:04:17 +0200 (MET DST)	[thread overview]
Message-ID: <200004271204.OAA14543@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: "Andrej Borsenkow"'s message of Thu, 27 Apr 2000 15:48:14 +0400


Andrej Borsenkow wrote:

> I've done ./configure --wTAB in zsh top level directory, got "completing
> no argument" - nice - changed to samba directory - and found, that
> ./configure --wTAB is still using cached arguments from  zsh's
> configure.

How weird. A very old bug, we shouldn't only test if we have to
prepend $PWD, we should also do it, in the right parameter.

Can't think of a better test for when we have to prepend $PWD.

> May be, it is related to the fact, that the first time nothing was
> completed?

Eh? Our configure has no options starting with `--w' or, more
precisely, they are all listed as `--enable-...'.

Bye
 Sven

Index: Completion/Base/_arguments
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Base/_arguments,v
retrieving revision 1.6
diff -u -r1.6 _arguments
--- Completion/Base/_arguments	2000/04/27 09:36:51	1.6
+++ Completion/Base/_arguments	2000/04/27 12:01:52
@@ -17,7 +17,7 @@
   fi
 
   name=${~words[1]}
-  [[ "$name" != /* ]] && tmp="$PWD/$name"
+  [[ "$name" = [^/]*/* ]] && name="$PWD/$name"
 
   name="_args_cache_${name}"
   name="${name//[^a-zA-Z0-9_]/_}"

--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


                 reply	other threads:[~2000-04-27 12:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=200004271204.OAA14543@beta.informatik.hu-berlin.de \
    --to=wischnow@informatik.hu-berlin.de \
    --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).