bug-gawk
[Top][All Lists]
Advanced

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

Re: [bug-gawk] abort keyword


From: Andrew J. Schorr
Subject: Re: [bug-gawk] abort keyword
Date: Sat, 13 Jan 2018 15:16:04 -0500
User-agent: Mutt/1.5.21 (2010-09-15)

On Fri, Jan 12, 2018 at 01:10:18PM -0600, Neil R. Ormos wrote:
> Arnold Robbins wrote:
> 
> >> Andy, maybe I'll do an abort extension for
> >> [g]awkextlib.  It's really pretty trivial to
> >> do... Feel free to beat me to it. :-)
> 
> > I have done this; it's now in gawkextlib.  Usage
> > should be something like:
> 
> >     gawk -labort '{ ... ; abort(42) ; ... }'
> 
> > This passes 42 to the C exit() routine. If
> > called with no argument, it passes zero.
> 
> Thanks.  I'll try it out when I can figure out
> how.

It should be something like:

wget https://sourceforge.net/projects/gawkextlib/files/gawk-abort-1.0.0.tar.gz
tar xf gawk-abort-1.0.0.tar.gz
cd gawk-abort-1.0.0
./configure && make && make check && make install

There should be no need to install gawkextlib first, since this simple
extension does not require that library. Then 'gawk -labort' should work as in
Arnold's example.

Regards,
Andy



reply via email to

[Prev in Thread] Current Thread [Next in Thread]