zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: Re: BUG: 3.1.5-pws-11 completion coredumps
Date: Mon, 15 Mar 1999 11:21:02 +0100 (MET)	[thread overview]
Message-ID: <199903151021.LAA22809@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: "Bart Schaefer"'s message of Sat, 13 Mar 1999 22:14:02 -0800


Bart Schaefer wrote:

> On Mar 14,  5:04am, Geoff Wing wrote:
> } Subject: BUG: 3.1.5-pws-11 completion coredumps
> }
> } may be fixed in pws-12 but nothing in pws's list seemed to indicate so.
> } 
> } Couple of core dumps with completion. pws-11 with all completion stuff
> } installed.
> } Doing ``~/src/she<TAB>'' (AUTO_CD obviously) at the prompt
> 
> I can't duplicate this in the pws-12 that I just built
> ...

Neither could I, hm.

> However, I can get this minor odd behavior:
> 
>     zsh% ~/zc<TAB>
>     zsh% ~//zc
> 
> There is no possible match for "zc", though there are three directories
> with names starting with "z".  The slash gets doubled only when there's
> no possible match.

Yup, forgot to test the other path-prefix parameter.

Bye
 Sven

diff -u oc/Core/_path_files Completion/Core/_path_files
--- oc/Core/_path_files	Mon Mar 15 10:52:18 1999
+++ Completion/Core/_path_files	Mon Mar 15 11:18:28 1999
@@ -405,6 +405,7 @@
     # No match, insert the expanded path and add the original tail.
 
     [[ "$testpath[-1]" = / ]] && testpath="$testpath[1,-2]"
+    [[ -z "$testpath" && "$linepath[-1]" = / ]] && linepath="$linepath[1,-2]"
     [[ -n "$ostr" && -n "$linepath$testpath" ]] && ostr="/$ostr"
 
     # But only if something changed.

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


             reply	other threads:[~1999-03-15 10:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-15 10:21 Sven Wischnowsky [this message]
  -- strict thread matches above, loose matches on Subject: below --
1999-03-13 15:00 pws-12 Peter Stephenson
1999-03-14  5:04 ` BUG: 3.1.5-pws-11 completion coredumps Geoff Wing
1999-03-14  6:14   ` Bart Schaefer
1999-03-14  7:15     ` Geoff Wing

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=199903151021.LAA22809@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).