On Tue, 27 Nov 2007, Kerry Mayes wrote:
The following shell script is producing an error saying that
"basename" is not found:
--------------------------
#!/bin/sh
I don't know is this is your problem in life... it may be.
I'm getting a really good supply of small sh scripting niggles out of
ubuntu of late. Debian has ported all their startup stuff to pure
"sh", so they have switched to "/bin/sh" === "/bin/dash" because it's
faster than bash so Ubuntu/Debian boots faster.
Unfortunately a lot of folk, myself included, have implicitly made the
assumption that /bin/sh == /bin/bash
ie. The Ubuntu/Debian scripts work with dash OK, but 3rd party stuff
sometimes falls over.
The correct solution is to change the
#!/bin/sh at the start of the script to..
#!/bin/bash
A workaround is to run
dpkg-reconfigure dash
and return bash to it's accustomed supremacy as the /bin/sh of the system.
John Carter Phone : (64)(3) 358 6639
Tait Electronics Fax : (64)(3) 359 4632
PO Box 1645 Christchurch Email : [EMAIL PROTECTED]
New Zealand