[aklug] Re: (ana)cron & Linux Counter update script

From: Joshua J. Kugler <joshua@eeinternet.com>
Date: Sun Oct 31 2010 - 23:14:24 AKDT

On Sunday 31 October 2010, Jim Gribbin elucidated thus:
> On my box, sh is linked to bash. I'm certain that will give me plenty
> to figure out for the moment :-)
>
> I assume in my case I can use '#!/bin/sh' & '#!/bin/bash'
> interchangeably?

Not if you want your scripts to be portable. If you rely on bash-isms
(and there are plenty) you need to use /bin/bash.

On Ubuntu (not sure when this started), /bin/sh links to /bin/dash

j

-- 
Joshua Kugler
Part-Time System Admin/Programmer
http://www.eeinternet.com - Fairbanks, AK
PGP Key: http://pgp.mit.edu/  ID 0x73B13B6A
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Sun Oct 31 23:14:38 2010

This archive was generated by hypermail 2.1.8 : Sun Oct 31 2010 - 23:14:38 AKDT