Irek, I attached the grep.c we used for Opensolaris. It is the same as
AST grep.c but with all global variables put into context structure
which is allocated from the stack.

This is work in progress, AFAIK Glenn once said it might leak memory
in cases. Glenn, do you remember what was wrong with this code?

Olga

2012/3/14 I. Szczesniak <[email protected]>:
> On Mon, Mar 5, 2012 at 11:42 PM, Wendy Lin <[email protected]> wrote:
>> I have a long standing feature request: Can the AST grep cmd be moved
>> into libcmd to make it a shell built in, please? Many platforms lack
>> suitable or standard (i.e. POSIX, like SunOS or AIX /bin/grep)
>> conforming grep implementations and a fast, conforming and
>> *accessible* grep implementation within ksh93 would be a *great* plus.
>>
>> Thanks for the consideration.
>
> +1
>
> I agree that this would be very useful. The opensolaris illumos ksh93
> already has AST grep as standard builtin, bound to /usr/xpg4/bin/grep,
> but to my surprise the standard ast-open distro does not.
>
> Glenn, Roland, Olga, can you elaborate?
>
> Irek



-- 
      ,   _                                    _   ,
     { \/`o;====-    Olga Kryzhanovska   -====;o`\/ }
.----'-/`-/     [email protected]   \-`\-'----.
 `'-..-| /       http://twitter.com/fleyta     \ |-..-'`
      /\/\     Solaris/BSD//C/C++ programmer   /\/\
      `--`                                      `--`

Attachment: grep.c.gz
Description: GNU Zip compressed data

_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to