[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Need bash-programmer for file-rc



On Tue, 31 Mar 1998, Martin Schulze wrote:

> On Tue, Mar 31, 1998 at 10:04:29AM +1000, Craig Sanders wrote:
> > On Tue, 31 Mar 1998, Martin Schulze wrote:
> > 
> > > I'm the maintainer of the file-rc package.  File-rc is a replacement
> > > for the old /etc/rc?.d system.  It manages the startup scripts in one
> > > single file /etc/runlevel.conf.
> > >
> > > This package contains a replacement for update-rc.d.  In order to
> > > increase speed it is written in bash and not in perl.  Unfortunately
> > > the original update-rc.d was improved and so they're not completely
> > > compatible.
> > >
> > > I'm mostly talking about constructs like
> > >
> > >    update-rc.d netbase start 20 0 1 2 . start 10 S . stop 90 4 5 6 .
> > 
> > i think you're mistaken that bash will be faster than perl for this.
> > 
> > the overhead of executing sed (and/or awk and/or perl) numerous times to
> 
> No sed
> No awk
> No cut
> No what else?
> 
> ONLY bash.  If you know bash you know how to write scripts that make
> only use of bash's features.
> 
> I'm sorry but I have to object, it is n times faster that a similar
> script in e.g. perl.

Don't worry.  I already have the basic command parser working.  There is a new
option, -d|--debug, for debugging purposes, and the new construct above is
also parsed correctly.

I am rewriting the entire script to conform to my programming style.  I don't
know if the old version allowed inplace changes, but mine will.

Adam.


--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: