From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 36 invoked from network); 18 Feb 2009 11:08:16 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 18 Feb 2009 11:08:16 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 40078 invoked from network); 18 Feb 2009 11:08:10 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 18 Feb 2009 11:08:10 -0000 Received: (qmail 11477 invoked by alias); 18 Feb 2009 11:08:04 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 26576 Received: (qmail 11464 invoked from network); 18 Feb 2009 11:08:03 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 18 Feb 2009 11:08:03 -0000 Received: from main.carme.maven.pl (main.carme.maven.pl [193.239.45.138]) by bifrost.dotsrc.org (Postfix) with ESMTPS id 0F4F080271F0 for ; Wed, 18 Feb 2009 12:08:00 +0100 (CET) Received: from [83.238.65.58] (port=4891 helo=maven.pl ident=matrix157) by main.carme.maven.pl with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1LZkHX-000c76-3J; Wed, 18 Feb 2009 12:07:59 +0100 Received: from arekm by maven.pl with local (Exim 4.69) (envelope-from ) id 1LZkHV-0000V4-SM; Wed, 18 Feb 2009 12:07:58 +0100 From: Arkadiusz Miskiewicz To: Peter Stephenson Subject: Re: force overwrite in completions Date: Wed, 18 Feb 2009 12:07:57 +0100 User-Agent: PLD Linux KMail/1.9.10 Cc: zsh-workers@sunsite.dk References: <200902180914.53604.arekm@maven.pl> <200902180938.n1I9cFQM014570@news01.csr.com> In-Reply-To: <200902180938.n1I9cFQM014570@news01.csr.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200902181207.57772.arekm@maven.pl> X-Virus-Scanned: ClamAV 0.92.1/9001/Wed Feb 18 05:29:20 2009 on bifrost X-Virus-Status: Clean 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 ~= =20 directory and then [arekm@tarm ~]$ LC_ALL=3DC mv a dump mv: try to overwrite `dump', overriding mode 0644 (rw-r--r--)? =20 [1]. sudo zsh and such usage patterns =2D-=20 Arkadiusz Mi=C5=9Bkiewicz PLD/Linux Team arekm / maven.pl http://ftp.pld-linux.org/