Package: cron Version: 3.0pl1-127+deb8u1 Severity: normal Change 876cc36d1e26f73391a79196dd6d591187049c9e in pkg-cron added the paragraph:
| [...] | An alternative for setting up the commands path is using the | fact that many shells will treat the tilde(~) as substitution | of $HOME, so if you use bash for your tasks you can use this: | SHELL=/bin/bash | PATH=~/bin:/usr/bin/:/bin | [...] Specifically bash (and probably other shells as well) only treats the tilde in this way when expanding the command line that /sets/ the environment variable, not when /reading/ it for the path of an executable. I. e., in a shell session/script, the second line would cause $PATH to be set to (for example) "/home/tim/bin:/usr/bin/:/bin", while if it is set in this manner in a crontab, in the shell it is set to "~/bin:/usr/bin/:/bin" (and thus wouldn't find executables in /home/tim/bin, but only in the subdirectory "bin" of the subdirectory "~" of the current directory (and /usr/bin and /bin)). The paragraph should be removed completely.