VAR = VALUE
Spaces around VAR are removed. No spaces around VALUE are allowed (unless you want them to be part of the value).
The assignment takes effect from the next line to the end of the file, or to the next assignment of the same vari‐
able.
Empty lines are either blank lines, line containing white-space only, or lines with white-space followed by a '#'
followed by an arbitrary comment.
You can continue a line onto the next line by ending it with a '\'.
看看/etc/anacrontab文件:
# /etc/anacrontab: configuration file for anacron
# See anacron(8) and anacrontab(5) for details.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
HOME=/root
LOGNAME=root
# These replace cron's entries
1 5 cron.daily run-parts --report /etc/cron.daily
7 10 cron.weekly run-parts --report /etc/cron.weekly
@monthly 15 cron.monthly run-parts --report /etc/cron.monthly
我认为这是根据
man 5 anacrontab
页面在 anacrontab 中的命令之前完成的:看看
/etc/anacrontab
文件:如您所见,环境变量是在命令之前设置的。