Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: BUG: 3.1.5-pws-11 completion coredumps



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@xxxxxxxxxxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author