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

Re: force overwrite in completions



On Wednesday 18 of February 2009, Peter Stephenson wrote:
> Arkadiusz Miskiewicz wrote:
> > 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.
>
> Hmm.... is "mv" aliased to "mv -i"?  If so, loading compinit with
> "autoload -U compinit" should stop the alias being used at this point.
> I ask because if mv is aliased then adding extra options on the end of
> the alias probably isn't the right fix.

No, it's not but somehow [1] dump file ends being created as root in user ~ 
directory and then

[arekm@tarm ~]$ LC_ALL=C mv a dump
mv: try to overwrite `dump', overriding mode 0644 (rw-r--r--)?  

[1]. sudo zsh and such usage patterns
-- 
Arkadiusz MiÅkiewicz        PLD/Linux Team
arekm / maven.pl            http://ftp.pld-linux.org/



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