Re: using bash features in init scripts

2003-10-01 Thread Bill Nottingham
> Is it possible that bash isn't available yet? > Perhaps some lib not on /? No, all bash libs are available on the root FS. They kind of have to be, as bash *is* /bin/sh... Bill ___ Redhat-devel-list mailing list [EMAIL PROTECTED] https://www.redhat.

Re: using bash features in init scripts

2003-10-01 Thread Thomas Dodd
Jonathan Bartlett wrote: The reason that normal startup scripts don't, is that there's no guarantee /bin/sh will point to bash, or even that bash is installed. If you want to use bash, the first line should be /bin/bash instead of /bin/sh, so it's obvious it needs bash specifically. Is it possibl

Re: using bash features in init scripts

2003-09-30 Thread John
On Sun, 28 Sep 2003, Jonathan Bartlett wrote: > The reason that normal startup scripts don't, is that there's no guarantee > /bin/sh will point to bash, or even that bash is installed. Have you tried to install RHL sans bash? Thought not. RH _can_ make that guarantee. -- Please, reply only to

Re: using bash features in init scripts

2003-09-28 Thread Vilius Puidokas
also you would wanna add requires: bash for initscripts rpm. not sure how portable initscripts package was designed to be, would anyone ever use it outside redhat? if not making a commitment to bash could be reasonable. just my .02 v On Sun, 28 Sep 2003, Jonathan Bartlett wrote: > The reason t

Re: using bash features in init scripts

2003-09-28 Thread Jonathan Bartlett
The reason that normal startup scripts don't, is that there's no guarantee /bin/sh will point to bash, or even that bash is installed. If you want to use bash, the first line should be /bin/bash instead of /bin/sh, so it's obvious it needs bash specifically. Jon On Sun, 28 Sep 2003, [iso-8859-1]

Re: using bash features in init scripts

2003-09-28 Thread Steven W. Orr
On Sunday, Sep 28th 2003 at 14:31 +0100, quoth Manoj Kumar: =>Is there any reason not to use bash features in init =>scripts? =>Consider, for example, this fragment from =>/etc/sysconfig/network-scripts/ifup-post: => =>DEVICETYPE=`echo $DEVICE | sed "s/[0-9]*$//"` =>REALDEVICE=`echo $DEVIC

using bash features in init scripts

2003-09-28 Thread Manoj Kumar
Is there any reason not to use bash features in init scripts? Consider, for example, this fragment from /etc/sysconfig/network-scripts/ifup-post: DEVICETYPE=`echo $DEVICE | sed "s/[0-9]*$//"` REALDEVICE=`echo $DEVICE | sed 's/:.*//g'` if echo $DEVICE | grep -q ':' ; then ISALIA