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

PATCH: change group explicitly



Inheriting directory group when creating files are standard behaviour
in BSD.  So I think test suite should call chgrp explicitly.

Index: Test/07cond.ztst
===================================================================
RCS file: /projects/zsh/zsh/Test/07cond.ztst,v
retrieving revision 1.1.1.3
diff -u -r1.1.1.3 07cond.ztst
--- Test/07cond.ztst	1999/12/26 22:57:23	1.1.1.3
+++ Test/07cond.ztst	2000/01/06 08:29:07
@@ -11,6 +11,7 @@
   touch	unmodified
 
   touch zerolength
+  chgrp $EGID zerolength
   print 'Garbuglio' >nonzerolength
 
   mkdir modish
@@ -97,8 +98,6 @@
   [[ -O zerolength ]]
 0:-O cond
 
-# there may be strange cases where this doesn't work, e.g.
-# inherited funny groups for directories via setgid.
   [[ -G zerolength ]]
 0:-G cond
 
-- 
Tanaka Akira



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