Ok, the problem solved. Thanks.

crontab(5) page of 4.7-RELEASE and 5.0-RELEASE cite the same thing
about variable assignment:

  The name string may also be placed in quote(single or double, but
  matching) to preserver leading, trailing or inner blanks.

I think the current implementation(r1.11 of env.c) is right according
to the manual. But 4-stable is still r1.7.2.1, so it'll be good to
wait until MFC...

From: Tim Robbins <[EMAIL PROTECTED]>
Subject: Re: 5.0 cron problem
Date: Wed, 5 Feb 2003 20:42:50 +1100

> On Wed, Feb 05, 2003 at 05:57:30PM +0900, CHOI Junho wrote:
> [...]
> > ----------------------
> > CVSUP=/usr/local/bin/cvsup -g -L2 -h localhost
> > CVSUPDIR=/b/FreeBSD/cvsup
> > 
> > # source sync
> > 0   */1     *       *       *       $CVSUP $CVSUPDIR/4_7-supfile > /dev/null
> > 20  */1     *       *       *       $CVSUP $CVSUPDIR/5_0-supfile > /dev/null
> > 40  */1     *       *       *       $CVSUP $CVSUPDIR/current-supfile > /dev/null
> > ----------------------
> > 
> > When I install this crontab:
> > 
> >  # crontab my-crontab
> >  "my-crontab":0: bad minute
> >  crontab: errors in crontab file, can't install
> > 
> > "0" means line number. It means variable setting doesn't work...
> > 
> > I used this crontab over years on 4.[4567]-RELEASE happily. What
> > happen to cron? I suspected updating procedure(/usr/src/UPDATING)
> > because my -current desktop(starting from -current snapshot a year
> > ago) doesn't have such problem.
> 
> Since revision 1.11 of src/usr.sbin/cron/lib/env.c, you need to put the
> value of the environment variable inside quotes if it contains any spaces.
> I suspect that this change of behaviour was unintentional given that the
> implementation differs from the manual page. I'll investigate and fix
> it if it's a bug. In the mean time, use something like this instead:
> CVSUP="/usr/local/bin/cvsup -g -L2 -h localhost"
> 
> 
> Tim
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-current" in the body of the message

--
CHOI Junho <http://www.kr.FreeBSD.org/~cjh>     KFUG <cjh at kr.FreeBSD.org>
FreeBSD Project <cjh at FreeBSD.org>        Web Data Bank <cjh at wdb.co.kr>
Key fingerprint = 1369 7374 A45F F41A F3C0  07E3 4A01 C020 E602 60F5

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to