[Bug 1337576] Re: dash inability - cron starts binary with /bin/sh
[Expired for dash (Ubuntu) because there has been no activity for 60 days.] ** Changed in: dash (Ubuntu) Status: Incomplete => Expired -- 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/dash/+bug/1337576/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1337576] Re: dash inability - cron starts binary with /bin/sh
Based on Steve's comment #8, this issue needs to worked with the upstream dash. Marking this as incomplete and removing taco screen team as the owner. ** Changed in: dash (Ubuntu) Status: Triaged => Incomplete ** Changed in: dash (Ubuntu) Assignee: Taco Screen team (taco-screen-team) => (unassigned) -- 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/dash/+bug/1337576/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1337576] Re: dash inability - cron starts binary with /bin/sh
** Changed in: dash (Ubuntu) Importance: Undecided => Low ** Changed in: dash (Ubuntu) Status: New => Triaged -- 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/dash/+bug/1337576/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1337576] Re: dash inability - cron starts binary with /bin/sh
It seems reasonable to want the shell to exec the command passed as a -c argument after evaluating it, instead of forking. However, I don't see anything in POSIX that defines that the shell must do this (http://pubs.opengroup.org/onlinepubs/009695399/utilities/sh.html). For such a small optimization (the dash shell has been picked precisely because it is very lightweight compared with bash, so stray shell processes for the lifetime of a running cronjob have negligible performance impact on the system), we would not want to carry a delta in Ubuntu. Please discuss with dash upstream (namely, the Debian maintainer). -- 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/dash/+bug/1337576/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1337576] Re: dash inability - cron starts binary with /bin/sh
** Changed in: dash (Ubuntu) Assignee: (unassigned) => Taco Screen team (taco-screen-team) -- 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/dash/+bug/1337576/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1337576] Re: dash inability - cron starts binary with /bin/sh
** Tags removed: targetmilestone-inin--- ** Tags added: targetmilestone-inin1604 -- 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/dash/+bug/1337576/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1337576] Re: dash inability - cron starts binary with /bin/sh
** Tags removed: targetmilestone-inin1410 ** Tags added: targetmilestone-inin--- -- 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/dash/+bug/1337576/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1337576] Re: dash inability - cron starts binary with /bin/sh
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
[Bug 1337576] Re: dash inability - cron starts binary with /bin/sh
(In reply to comment #3) Perhaps I should have been more clearer: This turns out to be a dash defect. ** Changed in: cron (Ubuntu) Status: Invalid = New -- 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
[Bug 1337576] Re: dash inability - cron starts binary with /bin/sh
Re-assigning to dash then. ** Package changed: cron (Ubuntu) = dash (Ubuntu) -- 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/dash/+bug/1337576/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs