[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gawk] abort keyword
From: |
Neil R. Ormos |
Subject: |
Re: [bug-gawk] abort keyword |
Date: |
Fri, 19 Jan 2018 12:09:32 -0600 (CST) |
Andrew J. Schorr wrote:
> 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.
Thanks to Arnold for the extension.
Thanks to Andy for the instructions.
Although I did not need to install gawkextlib, I
did need to put gawkextlib.h in the build
directory. I assume that wouldn't have been
necessary had I built and installed gawkextlib
first (as admonished in the manual for
gawkextlib).
Best regards,
--Neil Ormos
- Re: [bug-gawk] inside awk script check that -M/--bignum given on command line?, (continued)
- Re: [bug-gawk] inside awk script check that -M/--bignum given on command line?, Andrew J. Schorr, 2018/01/08
- Re: [bug-gawk] inside awk script check that -M/--bignum given on command line?, arnold, 2018/01/08
- Re: [bug-gawk] inside awk script check that -M/--bignum given on command line?, Andrew J. Schorr, 2018/01/08
- Re: [bug-gawk] inside awk script check that -M/--bignum given on command line?, Neil R. Ormos, 2018/01/08
- [bug-gawk] abort keyword, arnold, 2018/01/08
- Re: [bug-gawk] abort keyword, Andrew J. Schorr, 2018/01/08
- Re: [bug-gawk] abort keyword, Neil R. Ormos, 2018/01/08
- Re: [bug-gawk] abort keyword, Arnold Robbins, 2018/01/11
- Re: [bug-gawk] abort keyword, Neil R. Ormos, 2018/01/12
- Re: [bug-gawk] abort keyword, Andrew J. Schorr, 2018/01/13
- Re: [bug-gawk] abort keyword,
Neil R. Ormos <=
- Re: [bug-gawk] abort keyword, Andrew J. Schorr, 2018/01/19
- Re: [bug-gawk] abort keyword, arnold, 2018/01/20
- Re: [bug-gawk] abort keyword, Andrew J. Schorr, 2018/01/20
- Re: [bug-gawk] inside awk script check that -M/--bignum given on command line?, Manuel Collado, 2018/01/08
Re: [bug-gawk] inside awk script check that -M/--bignum given on command line?, arnold, 2018/01/05