bug-gawk
[Top][All Lists]
Advanced

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

Re: [bug-gawk] Can a GAWK script access its full path\name at "run-time?


From: Aharon Robbins
Subject: Re: [bug-gawk] Can a GAWK script access its full path\name at "run-time?
Date: Fri, 15 May 2015 10:25:42 +0300
User-agent: Heirloom mailx 12.5 6/20/10

> > Anyway, please replace
> > 
> >     @code{argc-1}
> > 
> > with
> > 
> >     @code{ARGC} @minus{} 1
> > 
> > and then you're fine.
>
> Hmmm, no, I don't think so: ARGC and argc have different values, since
> argc is what's passed into main by the O/S, whereas ARGC is typically
> smaller due to gawk's having consumed some of the arguments.

OK. You're right on that.

> Are you saying it should be '@code{argc} @minus{} 1' instead
> of '@code{argc-1}'?

At this point, yes, exactly.

Thanks,

Arnold



reply via email to

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