Clarify a code comment.

This commit is contained in:
Daniel Nichter
2013-01-30 16:46:36 -07:00
parent f7813c9495
commit 07da85bb75

View File

@@ -99,10 +99,11 @@ my $crontab = `crontab -l 2>/dev/null`;
SKIP: {
skip 'Crontab is not empty', 3 if $crontab;
# Crontab lines must end with a newline, else an error
# like this happens:
# On most systems[1], crontab lines must end with a newline,
# else an error like this happens:
# "/tmp/new_crontab_file":1: premature EOF
# errors in crontab file, can't install.
# [1] Ubuntu 10 and Mac OS X work without the newline.
my ($fh, $file) = tempfile();
print {$fh} "* 0 * * * date > /dev/null\n";
close $fh or warn "Cannot close $file: $OS_ERROR";