From owner-freebsd-questions Thu Feb 14 19: 6:48 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail.rpi.edu (mail.rpi.edu [128.113.22.40]) by hub.freebsd.org (Postfix) with ESMTP id D129C37B402 for ; Thu, 14 Feb 2002 19:06:46 -0800 (PST) Received: from [128.113.24.47] (gilead.acs.rpi.edu [128.113.24.47]) by mail.rpi.edu (8.11.3/8.11.3) with ESMTP id g1F36FJ100202; Thu, 14 Feb 2002 22:06:15 -0500 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <200202142242.g1EMgJk29996@lists.unixathome.org> References: <200202142235.g1EMZIk29951@lists.unixathome.org> <200202142242.g1EMgJk29996@lists.unixathome.org> Date: Thu, 14 Feb 2002 22:06:13 -0500 To: dan@langille.org, Erik Trulsson From: Garance A Drosihn Subject: Re: crontab entries need a CR/LF at the end Cc: Rogier Steehouder , questions@FreeBSD.ORG Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Scanned-By: MIMEDefang 2.3 (www dot roaringpenguin dot com slash mimedefang) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 5:42 PM -0500 2/14/02, Dan Langille wrote: >On 14 Feb 2002 at 23:40, Erik Trulsson wrote: > > It doesn't have to. In Unix a 'line' is generally defined as zero > > or more non-newline characters followed by a newline. > > So if it doesn't have a newline at the end, it isn't a line. > >Good points. So do you think the exhibited behaviour conforms to >POLA? I don't. It may not match POLA, but it might be prudent simply as a slight safety measure. Perhaps that last line *was* cut off in the middle of the line, for instance. You wouldn't want to execute half the command. I do think it would be helpful if cron printed out a warning message, though, so the user has some chance of realizing what the problem is. I don't know how easy that would be. It sounds easy... :-) -- Garance Alistair Drosehn = gad@eclipse.acs.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message