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

PATCH: compdump with HOME=/



Further to the messages about zsh under cygwin earlier in the week...

I've just installed cygwin and compiled zsh.  Without the fix I posted,
undefining HAVE_MMAP as suggested by Geoff, external programmes don't work;
with it, everything went flawlessly: the only minor fly in the ointment was
that my home diretory came up as / and compdump rewrote this as //, which
apparently cygwin can't cope with (or it couldn't this time).  Everything
else I tried worked, including the new completion system, running other
cygwin executables, running WIN32 executables, basic job control.  This
seems a pretty good test of the basics.  (Actually, I was astonished.)

$OS is set to Windows_NT, $MACHTYPE is i686; it's a Pentium III running
Windows NT 4 sp 5 with the latest available cygwin release.

Index: Completion/Core/compdump
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Core/compdump,v
retrieving revision 1.2
diff -u -r1.2 compdump
--- Completion/Core/compdump	2000/04/01 20:43:43	1.2
+++ Completion/Core/compdump	2000/05/19 18:00:53
@@ -19,6 +19,7 @@
 typeset _d_file _d_f _d_bks _d_line _d_als
 
 _d_file=${_comp_dumpfile-${0:h}/compinit.dump}.$HOST.$$
+[[ $_d_file = //* ]] && _d_file=${_d_file[2,-1]}
 
 typeset -U _d_files
 _d_files=( ${^~fpath:/.}/^([^_]*|*~|*.zwc)(N:t) )

-- 
Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxxx>
Cambridge Silicon Radio, Unit 300, Science Park, Milton Road,
Cambridge, CB4 0XL, UK                          Tel: +44 (0)1223 392070



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