DragonFly BSD
DragonFly users List (threaded) for 2010-05
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: first comment line in crontab always gets removed


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 3 May 2010 09:23:07 -0700 (PDT)

:Hi,
:
:I commented out my first line in crontab and saved it.
:When I took 'crontab -e' I found that it was removed.
:I tested it again. same behavior
:
:The first line ony gets removed if it starts with a #
:Is this accepted behavior?
:
:Thanks
:
:--Siju

    It's inherited from the original cron edit code where it tries to
    remove # template comments that it added to the original file.
    It should probably just not touch the content at all.  I've been
    hit by this issue too where I comment out a crontab line that
    happens to be at the top and cron deletes the commented line entirely.

					-Matt
					Matthew Dillon 
					<dillon@backplane.com>



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]