Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
force overwrite in completions
- X-seq: zsh-workers 26573
- From: Arkadiusz Miskiewicz <arekm@xxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: force overwrite in completions
- Date: Wed, 18 Feb 2009 09:14:53 +0100
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Hi,
I'm using zsh on a system which shares $HOME between two separate servers and
when using both at the same time, switching to root at these (and so on) I
sometimes get a question from mv asking me if I want to overwrite a file over
and over.
This patch just forces such overwrite.
--- zsh-4.3.9/./Completion/compdump~ 2008-07-29 10:53:08.000000000 +0200
+++ zsh-4.3.9/./Completion/compdump 2009-02-11 20:13:11.358508082 +0100
@@ -132,7 +132,7 @@
print "typeset -gUa _comp_assocs" >> $_d_file
print "_comp_assocs=( ${(qq)_comp_assocs} )" >> $_d_file
-mv $_d_file ${_d_file%.$HOST.$$}
+mv -f $_d_file ${_d_file%.$HOST.$$}
unfunction compdump
autoload -Uz compdump
--
Arkadiusz MiÅkiewicz PLD/Linux Team
arekm / maven.pl http://ftp.pld-linux.org/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author