Re: shell script error sh, dash, bash and Debian/Ubuntu

2007-11-28 Thread John Carter
On Tue, 27 Nov 2007, Volker Kuhlmann wrote: On Tue 27 Nov 2007 13:37:50 NZDT +1300, John Carter wrote: 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. Do yo

Re: shell script error sh, dash, bash and Debian/Ubuntu

2007-11-27 Thread Volker Kuhlmann
On Tue 27 Nov 2007 13:37:50 NZDT +1300, John Carter wrote: > 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. Do you have numbers for this difference? Can you

Re: shell script error sh, dash, bash and Debian/Ubuntu

2007-11-26 Thread Aidan Gauland
Yes, that is definitely something to try. A good rule of thumb when writing your own bash scripts is to ALWAYS put #!/bin/bash unless you're certain that your script is fully compatible with the bourne shell, and doesn't use any bash specific features. On 27/11/2007, at 1:37 PM, John Carte

Re: shell script error sh, dash, bash and Debian/Ubuntu

2007-11-26 Thread John Carter
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