zsh-users
 help / color / mirror / code / Atom feed
* PATCH: compdump with HOME=/
@ 2000-05-19 18:17 Peter Stephenson
  2000-05-19 19:11 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Stephenson @ 2000-05-19 18:17 UTC (permalink / raw)
  To: Zsh users list

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@cambridgesiliconradio.com>
Cambridge Silicon Radio, Unit 300, Science Park, Milton Road,
Cambridge, CB4 0XL, UK                          Tel: +44 (0)1223 392070


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: PATCH: compdump with HOME=/
  2000-05-19 18:17 PATCH: compdump with HOME=/ Peter Stephenson
@ 2000-05-19 19:11 ` Bart Schaefer
  0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2000-05-19 19:11 UTC (permalink / raw)
  To: Peter Stephenson, Zsh users list

On May 19,  7:17pm, Peter Stephenson wrote:
> Subject: PATCH: compdump with HOME=/
> Further to the messages about zsh under cygwin earlier in the week...
> 
> [...] the only minor fly in the ointment was
> that my home diretory came up as / [...]

You can fix that by going into the user configuration and giving yourself
a home directory.  (On NT, that is; I'm not sure of the 95/98 equivalent.)
I usually pick the directory where NT has already stashed all my personal
.INI files and the like, which I believe is under "Program Files" somewhere
(it's been a while since I set this up).


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-05-19 19:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-05-19 18:17 PATCH: compdump with HOME=/ Peter Stephenson
2000-05-19 19:11 ` Bart Schaefer

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).