[Mailman-Developers] semantic error inmailmanctlline 255(Mailman 2.1.2)

Oliver Egginger Oliver.Egginger at dvz.fh-giessen.de
Thu May 15 14:46:27 EDT 2003


Am Don, 2003-05-15 um 14.42 schrieb Carson Gaspar:
> --On Thursday, May 15, 2003 10:29 AM +0200 Oliver Egginger 
> <Oliver.Egginger at dvz.fh-giessen.de> wrote:
> 
> >> From my understanding the first argument (argv[0]) of a program, which
> > gets called by os.execl, should always yield the name of this programm.
> > For example:
> 
> ARGV[0] can be absolutely any null terminated string your heart desires. 
> Many pieces of software do "interesting" things based on what ARGV[0] is 
> set to (such as shells, which are "login" shells if ARGV[0][0] is '-').
> 
> Anything that assumes ARGV[0] actually exists in the filesystem is deluded.

As far as I am concerned but it is the common practice to set ARGV[0] to
the program name. 
Last but not least every shell calls other programs this way and python
gets started from shell a million times every day all over the world.

It depends on the current program, in this case python 2.2.2, how
ARGV[0]is treated.
In this case it will not work if you break the common practice described
above.

Maybe this is only true for a few (maybe broken) Mandrake python
installations.

But are you completely sure that ARGV[0] is of no relevance for every
python interpreter?

I'am far away of being a python specialist.

- oliver






More information about the Mailman-Developers mailing list