From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4691 invoked from network); 24 Mar 2004 20:42:10 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 24 Mar 2004 20:42:10 -0000 Received: (qmail 7002 invoked by alias); 24 Mar 2004 20:41:34 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7263 Received: (qmail 6990 invoked from network); 24 Mar 2004 20:41:33 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 24 Mar 2004 20:41:33 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [130.225.247.86] by sunsite.dk (MessageWall 1.0.8) with SMTP; 24 Mar 2004 20:41:33 -0000 Received: (qmail 26422 invoked from network); 24 Mar 2004 20:41:33 -0000 Received: from main.gmane.org (80.91.224.249) by a.mx.sunsite.dk with SMTP; 24 Mar 2004 20:41:31 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1B6FBq-0000V6-00 for ; Wed, 24 Mar 2004 21:41:30 +0100 Received: from isi-dialin-129-79.isionline-dialin.de ([195.158.129.79]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Mar 2004 21:41:30 +0100 Received: from thorsten by isi-dialin-129-79.isionline-dialin.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Mar 2004 21:41:30 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@sunsite.dk From: Thorsten Kampe Subject: Re: "autoload -U" expanding alias Date: Wed, 24 Mar 2004 21:41:25 +0100 Message-ID: <18er7fb2633if$.dlg@thorstenkampe.de> References: <1040324183610.ZM16086@candle.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: isi-dialin-129-79.isionline-dialin.de User-Agent: 40tude_Dialog/2.0.10.1de Sender: news X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=0.0 required=6.0 tests=none autolearn=no version=2.63 X-Spam-Hits: 0.0 * Bart Schaefer (2004-03-24 19:36 +0100) > On Mar 23, 10:43pm, Thorsten Kampe wrote: > } I have a script that zcompiles some rcfiles. It's asking whether to > } overwrite files: > } re-compiling /home/thorsten/.zsh/.zlogout.zwc: mv: overwrite > } `/home/thorsten/.zsh/.zlogout.zwc.old', overriding mode 0400? > > This message is happening because of the 0400 file mode, not because of > any option being passed to the "mv" command. Files that are not writable > in directories that are writable trigger this behavior unless "mv -f" is > used. I see. But these "0400" ".zwc.old" files are created from zrecompile itself. This happens only on my Linux box. My Cygwin host has no problems mv a 0400 file. > } What's happening and how can I prevent this question? > > chmod 0600 the .zwc.old files. How did they end up mode 0400 ? Does > your umask setting typically cause you to create files you can't write? My umask is 077 so the newly created file from zrecompile should be mode 600 - not 400. Thorsten