Re: Announcing bcron version 0.08

Gerrit Pape <[email protected]>
Newsgroups gmane.comp.sysutils.bgware
Message-ID <20050421142535.22250.qmail@177f5b0e368979.315fe32.mid.smarden.org>
On Wed, Apr 20, 2005 at 12:31:51PM -0600, Bruce Guenter wrote:
> On Sat, Apr 09, 2005 at 10:37:19AM +0000, Gerrit Pape wrote:
> > the bcron-run Debian package will set these permissions
> >   for i in crontabs tmp trigger; do
> >     chown cron:cron /var/spool/cron/$i
> >     chmod go-rwx /var/spool/cron/$i
> >   done
> 
> Can we assume a useful shell, and just write:
> 	chown cron:cron /var/spool/cron/{crontabs,tmp,trigger}
> 	chmod go-rwx /var/spool/cron/{crontabs,tmp,trigger}
> ?

I don't think so.  At least on Debian, /bin/sh is only required to
implement posix features plus some limited extensions.  Such brace
expansions are not required by posix
 http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_13_03

The for loop should work fine with any /bin/sh.

Regards, Gerrit.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.