Re: bashisms in init scripts

2005-08-12 Thread Piotr Roszatycki
On Friday 12 of August 2005 10:41, Petter Reinholdtsen wrote: > [Piotr Roszatycki] > > > I've tried to replace /bin/sh with /bin/posh and it was completly > > disaster. > > Did the same happen using /bin/dash as /bin/sh? I believe it is > comparable in size with posh. No, dash works better. The p

Re: bashisms in init scripts

2005-08-12 Thread Frans Pop
On Friday 12 August 2005 10:19, Piotr Roszatycki wrote: > I've tried to replace /bin/sh with /bin/posh and it was completly > disaster. > > The replacement for bash is especially important on embedded plaforms > or palmtops with a little memory (like my Jornada 720). I've found that > the system sc

Re: bashisms in init scripts

2005-08-12 Thread Petter Reinholdtsen
[Piotr Roszatycki] > I've tried to replace /bin/sh with /bin/posh and it was completly disaster. Did the same happen using /bin/dash as /bin/sh? I believe it is comparable in size with posh. > The system was fucked up. I've found the errors in critical init > scripts: file-rc (/etc/init.d/rc),

Re: bashisms

1997-12-14 Thread Herbert Xu
Kai Henningsen wrote: > > [EMAIL PROTECTED] (Adrian Bridgett) wrote on 27.11.97 in <[EMAIL PROTECTED]>: > > > There are alot of scripts which use unnecessary bashisms. Apart from complex > > scripts most of these can be easily changed to conform to the POSIX shell. > > This has the added advanta

Re: bashisms

1997-12-13 Thread Kai Henningsen
[EMAIL PROTECTED] (Adrian Bridgett) wrote on 27.11.97 in <[EMAIL PROTECTED]>: > There are alot of scripts which use unnecessary bashisms. Apart from complex > scripts most of these can be easily changed to conform to the POSIX shell. > This has the added advantage of meaning that those who want t

Re: bashisms

1997-12-10 Thread Raul Miller
> Adrian Bridgett <[EMAIL PROTECTED]> writes: > > cp fred.{txt,html} dest-> cp fred.txt fred.html dest > > function f() {echo Hi;}-> f() {echo Hi;} should be f(){ echo Hi;} you MUST have a space after the opening brace. Of course, extra spaces are legal: f ( ) { echo Hi

Re: bashisms

1997-12-06 Thread Greg Stark
Adrian Bridgett <[EMAIL PROTECTED]> writes: > To this end we really need a short document which details the differences, > the "right" way to do things and the definite "No-No"s. Maybe this should > go into the packaging manual, but initially it is probably better to have it > seperate as it wou