> From: Bill Moseley <[EMAIL PROTECTED]>
> Date: Thu, 19 Sep 2002 15:01:50 -0700

> >is there some command you can issue after the mkdir but before the
> >touch, which will fix the problem?
> 
> I'm not sure.  Could chgrp the file in /tmp before moving, I suppose, but
> is that portable?

We can ignore the error if it is not.  E.g., something like this?

tmp=$TMPDIR/cs123456
(umask 077 && mkdir $tmp) || exit
(set X`ls -dln` && chgrp $4 $tmp) 2>/dev/null
touch $tmp/foo
mv $tmp/foo .


Reply via email to