* awk & Jensen...help needed
@ 1999-10-29 3:30 Rajiv Dighe
1999-10-29 12:06 ` Rajiv Dighe
0 siblings, 1 reply; 2+ messages in thread
From: Rajiv Dighe @ 1999-10-29 3:30 UTC (permalink / raw)
To: axp-list
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: awk & Jensen...help needed
1999-10-29 3:30 awk & Jensen...help needed Rajiv Dighe
@ 1999-10-29 12:06 ` Rajiv Dighe
0 siblings, 0 replies; 2+ messages in thread
From: Rajiv Dighe @ 1999-10-29 12:06 UTC (permalink / raw)
To: axp-list
Err...ignore that...I have as usual made an ass of myself by
confusing function file passed in via '-f' and input file..which
specifies stuff to be acted on.. :(
--Rajiv
On 28 Oct 99, at 23:30, Dighe, Rajiv (R.) [EXCHANGE:CANOI:IO47-I] wrote:
> 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
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-10-29 11:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-10-29 3:30 awk & Jensen...help needed Rajiv Dighe
1999-10-29 12:06 ` Rajiv Dighe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox