Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Mar 2012 11:15:50 -0400
From:      Jason Hellenthal <jhellenthal@dataix.net>
To:        ports@freebsd.org
Subject:   FW: [ast-users] Feature request: AST grep as shell built in
Message-ID:  <20120330151550.GA78586@DataIX.net>

next in thread | raw e-mail | index | archive | help
--90e6ba2121f7127ca304bc7751b0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable


Just a heads up for everyone who may find this interesting... But
builtin grep and friends have now been added to ksh93...

----- Forwarded message from Glenn Fowler <gsf@research.att.com> -----

Date: Fri, 30 Mar 2012 02:42:05 -0400
=46rom: Glenn Fowler <gsf@research.att.com>
To: gsf@research.att.com, wendlin1974@googlemail.com
Cc: ast-users@research.att.com, ast-developers@research.att.com
Subject: Re: [ast-users] Feature request: AST grep as shell built in
X-Mailer: mailx (AT&T/BSD) 9.9 2012-02-29


ast-cmdtst.2012-03-30.tgz md5 e84b44ba46bef61cf68c4d22dddf3b6b
source just posted to www.research.att.com/sw/download/beta/
it requires nmake to build so
you will need either the ast-base or ast-open package installed

download ast-cmdtst.2012-03-30.tgz lib/package/tgz
bin/package read
bin/package use # new ksh with viewpath env ready to build
cd cmdtst
nmake install
nmake test

then this line in a ksh script to test
	builtin -f cmdtst grep egrep fgrep xargs

all of the standalone grep and xargs tests pass
but the builtin environment could introduce new bug vectors

--

don't ask me or the list how to build plugins without nmake
its encoded in the nmake rules and probe files
its portable to all target architectures (including linux hpux aix cygwin u=
win mvs macos)
it uses the same conditional-free makefile on all target architectures
it generates files using the native system file and directory naming conven=
tions

in general ast { plugins, shared libraries, dlls } require nmake and
do not build with the bootstrap mamake/Mamfile=20
that's why bin/package always builds nmake first and then proceeds with the=
 remaining components

_______________________________________________
ast-users mailing list
ast-users@research.att.com
https://mailman.research.att.com/mailman/listinfo/ast-users

----- End forwarded message -----

--=20
;s =3D;

--90e6ba2121f7127ca304bc7751b0
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----

iQEcBAEBAgAGBQJPdc4lAAoJEJBXh4mJ2FR+s/kH/0UGwsCa4hj1JeI2rCBSCOd0
MY6X+BmFe/FBg65nc5R/6WIh3rpKfIbzYCSqOFx64o5n5zxrJvFfha8yknyMBpas
x9RcVqN2tJRkbD9f3m7VpPV/OECoxnJTaeZ/D8DKgB8/aXLmek/wUBj7vJWb39fY
Zwvyq+XgJQzX1mL1QHQfYV1ScgbeEdn6Bgr5nH+IZMYO8UC3WyvHpm5RqDz8Plq/
fNCYbW/zXq7wbB7BXmmMnShpMpXb9sInAAHSU0iS2EjqBMVWIplg30qm8WvLVg45
6cPG+fTx5GI2nAvwQ+m0kgCk20kNUU5u2Hq+o2nCpVP7u//OkGJVIjtR3FYFQL8=
=48FL
-----END PGP SIGNATURE-----

--90e6ba2121f7127ca304bc7751b0--



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