[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
- Re: [bug-gawk] Can a GAWK script access its full path\name at "run-time?, (continued)
- Re: [bug-gawk] Can a GAWK script access its full path\name at "run-time?, Andrew J. Schorr, 2015/05/14
- Re: [bug-gawk] Can a GAWK script access its full path\name at "run-time?, Eli Zaretskii, 2015/05/14
- Re: [bug-gawk] Can a GAWK script access its full path\name at "run-time?, Aharon Robbins, 2015/05/14
- Re: [bug-gawk] Can a GAWK script access its full path\name at "run-time?, Eli Zaretskii, 2015/05/14
- Re: [bug-gawk] Can a GAWK script access its full path\name at "run-time?, Andrew J. Schorr, 2015/05/14
- Re: [bug-gawk] Can a GAWK script access its full path\name at "run-time?, Aharon Robbins, 2015/05/14
- Re: [bug-gawk] Can a GAWK script access its full path\name at "run-time?, Andrew J. Schorr, 2015/05/14
- Re: [bug-gawk] Can a GAWK script access its full path\name at "run-time?,
Aharon Robbins <=
- Re: [bug-gawk] Can a GAWK script access its full path\name at "run-time?, Eli Zaretskii, 2015/05/15
- Re: [bug-gawk] Can a GAWK script access its full path\name at "run-time?, Andrew J. Schorr, 2015/05/15
- Re: [bug-gawk] Can a GAWK script access its full path\name at "run-time?, Joep van Delft, 2015/05/14
- Re: [bug-gawk] Can a GAWK script access its full path\name at "run-time?, Eli Zaretskii, 2015/05/14
- Re: [bug-gawk] Can a GAWK script access its full path\name at "run-time?, Aharon Robbins, 2015/05/14
- Re: [bug-gawk] Can a GAWK script access its full path\name at "run-time?, Eli Zaretskii, 2015/05/15