Perhaps I should have been more clearer: the POSIX standard mandates
that the command field (that's everything in the sixth column of a
crontab file) be passed as arguments to /bin/sh:

  | The sixth field of a line in a crontab entry is a string
  | that shall be executed by sh at the specified times.

Therefore, this cannot be changed.

Furthermore, exec'ing the command directly would severely break existing
crontabs. Take the following entry for example, which utilizes output
redirection:

  15  *  *  *  * df -h > $HOME/disk.log

As you correctly identified, /bin/sh points to /bin/dash. But you can
point that to any other Bourne-compatible shell, eg bash, if you want.

** Changed in: cron (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1337576

Title:
  dash inability - cron starts binary with /bin/sh

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cron/+bug/1337576/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to