Skip to content

Passing Environmental Variables with Newlines results in silent failure in write()

To reproduce:

from crontab import CronTab

cron = CronTab(user=True)

cron.new(command=command)

cron.env["MY_ENV_VAR"] = "this is line1 \n\n followed another line"

### Below fails silently -- no crontab is created 
cron.write()

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information