rbthomas@athos.rutgers.edu (Rick Thomas) (09/25/89)
I just downloaded and tried to compile the recently posted Patch and Bawk programs. Here are my observations -- all helpful comments will be appreciated. BAWK 1) Compiling bawk using the makefile gives lots of warnings about illegal or dangerous conversions of ptr <-> int and ptr-type-1 <-> ptr-type-2 Is this a serious problem? 2) There is no documentation in the bawk posting. How do you use it? Presumable "bawk" stands for Basic AWK, but what parts are left out? 3) I had to "#include <ctype.h>" in order to get "tolower" defined in bawksym.c 4) "bawk -f aaa bbb" gives no output when file aaa contains {print $3 } and bbb contains the output of an "ls -l". This is not what I would expect from a "Basic AWK" program. PATCH 1) Make (either 1.3PH or 1.4a) does not seem to get the "$*" macro right when it is used in the patch Makefile rule for ".c.s" It always wants to compile "version.c" instead of the correct thing. I changed it to use "$<" instead of "$*.c" and it worked OK. 2) pch.c and inp.c get lots of "warning conversion of long to pointer loses accuracy". Is this serious? 3) The patch.man file included with the patch posting needs to be formatted with nroff (which Minix did not have until recently -- and I have not yet installed anyway) before it can be useful to Minix people. That's it so far... All help will be appreciated. Enjoy! Rick -- Rick Thomas uucp: {ames, att, harvard}!rutgers!jove.rutgers.edu!rbthomas internet: rbthomas@JOVE.RUTGERS.EDU bitnet: rbthomas@zodiac.bitnet Phone: (201) 932-4301
ast@cs.vu.nl (Andy Tanenbaum) (09/25/89)
In article <Sep.25.00.50.23.1989.7799@athos.rutgers.edu> rbthomas@athos.rutgers.edu (Rick Thomas) writes: > >3) I had to "#include <ctype.h>" in order to get "tolower" defined in >bawksym.c I know. The headers are a mess. I'll try to straighten them out as far as POSIX goes. >4) "bawk -f aaa bbb" gives no output when file aaa contains > > {print $3 } Try printf. I think print is not implemented. I'll see if I can find a manual for bawk somewhere. Andy Tanenbaum (ast@cs.vu.nl)
jf@unido.UUCP (Jan-Hinrich Fessel) (09/26/89)
In article <Sep.25.00.50.23.1989.7799@athos.rutgers.edu> rbthomas@athos.rutgers.edu (Rick Thomas) writes: >2) There is no documentation in the bawk posting. How do you use it? >Presumable "bawk" stands for Basic AWK, but what parts are left out? As far as I know, all the parts anyone using awk needs. I've been testing it a while ago and all I can say is 'useless'. Anyway, I got some bawk.doc file, which on reqest I eventually will manage to post :-) Jan-Hinrich