Well, the comment about me being "completely wrong about *every* Linux and *BSD" is fine, I certainly could be. I will maintain that bash is, however, more *prevalent* at least, otherwise why bother to leave it in as the default login shell?
But regardless, did he have any insight on the cron issue? That seems to be the real problem here, and I didn't see anything in his comments that actually address the issue we're having. Tony On 2/28/08 8:08 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Dear Tony, > > On Wed, 27 Feb 2008, Tony Harris wrote: > >> >> So, here's the story on this. >> >> A coworker has Ubuntu on a machine, where he is writing some scripts. He >> uses #!/bin/bash at the head of the scripts. They work fine from a shell >> prompt. Schedule them as a cron job, they fail, because the bash-specific >> things don't work. Turns out as cron jobs they're running under dash, in >> spite of the #!/bin/bash at the start of each script. Put SHELL=/bin/bash in >> the crontab, and then they work. >> >> Why? Shouldn't the #! line still be in force even when run from a cron? >> Certainly works that way for Perl scripts I've written, which need only begin >> with #!/usr/bin/perl to function just fine. Of course if the default shell >> is bash, it wouldn't really make a difference to these scripts since they'd >> get the right shell, just as they would on any other Linux box at this point. >> >> Thoughts? >> > > My old friend Matt Zimmerman (https://launchpad.net/~mdz) sends his > regards and the following illumination to us in our Northeastern chill > darkness and ignorance: > > From [EMAIL PROTECTED] Thu Feb 28 03:49:29 2008 > Date: Thu, 28 Feb 2008 08:49:25 +0000 > From: Matt Zimmerman <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: Re: dash? > > We made this change over a year ago in Ubuntu 6.10. LSB and Debian policy > mandate that /bin/sh be a POSIX compatible shell, not bash, and we see > substantial performance benefits from using a lighter-weight shell than > bash. > > Note that the default *login* shell has remained bash for interactive use. > This only affects #!/bin/sh scripts. > > https://wiki.ubuntu.com/DashAsBinSh > > He is of course completely wrong about "every Linux (and *BSD)". > > Tony, the above is a harsh judgement, but from a fairly authoritative > source (at least on the topic of Ubuntu :^). > > Finally note with how much glee I enjoy throwing a nice warm cup of > gasoline on that comfy winter fire now burning under the mantle... > > Kindest Regards, > > > Paul flint
