From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 4383 invoked from network); 29 Oct 1999 03:21:57 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 29 Oct 1999 03:21:57 -0000 Received: from smtprtp1.ntcom.nortel.net (smtprtp1.ntcom.nortel.net [137.118.22.14]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id XAA22095 for ; Thu, 28 Oct 1999 23:21:57 -0400 Message-Id: <199910290321.XAA22095@mail.redhat.com> Received: from zcard00m.ca.nortel.com (actually zcard00m) by smtprtp1.ntcom.nortel.net; Thu, 28 Oct 1999 23:21:35 -0400 Received: from zcard00b.ca.nortel.com ([47.128.208.105]) by zcard00m.ca.nortel.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2448.0) id V5M10FKK; Thu, 28 Oct 1999 23:21:32 -0400 Received: from CR734636-A (extranet-139-120.corpeast.baynetworks.com [132.245.139.120]) by zcard00b.ca.nortel.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2448.0) id VTZ821T8; Thu, 28 Oct 1999 23:21:33 -0400 From: "Rajiv Dighe" Organization: Nortel Networks To: axp-list@redhat.com Date: Thu, 28 Oct 1999 23:30:59 -0400 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: awk & Jensen...help needed Reply-to: "Rajiv Dighe" Priority: normal X-mailer: Pegasus Mail for Win32 (v3.11) I haven't done any development on any variant of unix. I found getting used to gdb rather hard..but that's what you get after spending too much time using MSVC. anyways..using good old printfs, I have found out where awk is hanging. but I don't have enough familiarity with code( rather tools ) to figure out why. If any of you gurus have any ideas, suggestions, please give me a shout. Now to describe the situation.... Scenario: #1 You are running awk using following command line.. cr-734636-a$ gawk -f swaplns.awk In this case, after bunch of command line & other processing we finally land in a function called 'nextfile' in io.c from gawk source. This function contains a for loop that is supposed to run from 1 to some variable. It looks like starting value is 1 to stop over argv[0] which is going to contain name that was used to launch the binary( 'gawk' in this case ). When gawk is being run as in scenarion #1, variable in for loop evaluates to 1. so loop is not executed & awk behaves as if no filename was passed to it. It opens stdin & waits for input. This leads me to believe that command line argument parsing done by awk is for some reason toast on jensen. I unfortunately will not have much time for next few days, but if there are any C gurus among us, I would dearly love to get some help in resolving this issue. It's extremly irritating to have to do 'make config' & answer 300 questions to be able to build kernel instead of using 'make menuconfig' which uses awk :( --Rajiv