Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: compdump should write .zcompdump exclusively.
- X-seq: zsh-workers 7284
- From: Tanaka Akira <akr@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: PATCH: compdump should write .zcompdump exclusively.
- Date: 27 Jul 1999 11:13:54 +0900
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author