Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Oct 1997 21:56:41 +0900
From:      Shigio Yamaguchi <shigio@wafu.netgate.net>
To:        hackers@freebsd.org
Cc:        shigio@wafu.netgate.net
Subject:   Rewriting global(1) with C.
Message-ID:  <199710140458.EAA13378@wafu.netgate.net>

next in thread | raw e-mail | index | archive | help
Hello,

I'm Shigio Yamaguchi, the author of GLOBAL.

I'm thinking of rewriting global(1) with C.
My reason for doing this is because current global(1) written
with perl(1) is slow to start.
Since it is frequently executed internally in nvi(1), emacs (gtags.el)
and WWW server (global.cgi), I think it is meaningful to do it.

At the same time, I will adopt POSIX regular expression library regex(3)
(included by BSD and GNU package) instead of perl's '/pattern/' command.
Regex(3) in extended mode is nearly equal to egrep's regular expression.

This means global's spec will be changed slightly.

For example, currently you can use perl's regular expression like this.

	% global -x '^for\x6b\d'		# \x6b == 'k'
	fork1            119 kern/kern_fork.c fork1(p1, flags, retval)

But new version would print nothing.

	% global -x '^for\x6b\d'
	%

Is this correct?
If you cannot accept this change, please let me know.

Thank you in advance.
--
Shigio Yamaguchi (Freelance programmer)
	Mail: shigio@wafu.netgate.net, WWW: http://wafu.netgate.net/tama/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199710140458.EAA13378>