From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10810 invoked from network); 4 Mar 2000 05:47:56 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 4 Mar 2000 05:47:56 -0000 Received: (qmail 18161 invoked by alias); 4 Mar 2000 05:47:50 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9990 Received: (qmail 18142 invoked from network); 4 Mar 2000 05:47:48 -0000 From: "Bart Schaefer" Message-Id: <1000304054744.ZM23967@candle.brasslantern.com> Date: Sat, 4 Mar 2000 05:47:44 +0000 In-Reply-To: <000501bf8518$ba860d80$21c9ca95@mow.siemens.ru> Comments: In reply to "Andrej Borsenkow" "07cond test failure" (Mar 3, 4:59pm) References: <000501bf8518$ba860d80$21c9ca95@mow.siemens.ru> <000c01bf853e$0fdb2570$21c9ca95@mow.siemens.ru> In-Reply-To: <000c01bf853e$0fdb2570$21c9ca95@mow.siemens.ru> Comments: In reply to "Andrej Borsenkow" "RE: 07cond test failure" (Mar 3, 9:26pm) X-Mailer: Z-Mail (5.0.0 30July97) To: "ZSH workers mailing list" Subject: Re: 07cond test failure MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Mar 3, 4:59pm, Andrej Borsenkow wrote: } Subject: 07cond test failure } } bor@itsrm2% zsh -f ztst.zsh 07cond.ztst } chmod: Execute permission required for set-ID } on execution for modish } ... } Test 07cond.ztst failed: bad status 1, expected 0 from: } [[ -g modish && ! -g zerolength ]] } Was testing: -g cond } } SUS V2 specifies this as implementation dependent. On Mar 3, 9:26pm, Andrej Borsenkow wrote: } Subject: RE: 07cond test failure } } Hmm ... I'm afarid I was not clear enough. You were clear enough. } > Why 07cond sets umask to 077? It's so the files are guaranteed not to have any modes that zsh does not actually set, I think. Here's a simple patch; it should work, but let me know anyway: Index: Test/07cond.ztst =================================================================== @@ -15,7 +15,7 @@ print 'Garbuglio' >nonzerolength mkdir modish - chmod g+s modish + chmod g+xs modish chmod u+s modish chmod +t modish -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com