zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: compdump should write .zcompdump exclusively.
@ 1999-07-27  2:13 Tanaka Akira
  0 siblings, 0 replies; only message in thread
From: Tanaka Akira @ 1999-07-27  2:13 UTC (permalink / raw)
  To: zsh-workers

I found that two zsh started at the same time may break .zcompdump.

--- Completion/Core/compdump-	Tue Jul 27 10:57:22 1999
+++ Completion/Core/compdump	Tue Jul 27 11:05:00 1999
@@ -17,7 +17,7 @@
 
 typeset _d_file _d_f _d_bks _d_line _d_als
 
-_d_file=${compconfig[dumpfile]-${0:h}/compinit.dump}
+_d_file=${compconfig[dumpfile]-${0:h}/compinit.dump}.$HOST.$$
 
 typeset -U _d_files
 _d_files=( ${^~fpath}/_(|*[^~])(N:t) )
@@ -87,6 +87,8 @@
 done >> $_d_file
 
 print >> $_d_file
+
+mv $_d_file ${_d_file%.$HOST.$$}
 
 unfunction compdump
 autoload -U compdump

-- 
Tanaka Akira


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-07-27  2:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-07-27  2:13 PATCH: compdump should write .zcompdump exclusively Tanaka Akira

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