This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients Alexander.Belopolsky, benjamin.peterson, doko, pitrou, r.david.murray, theller
Date 2010-03-18.19:32:07
SpamBayes Score 7.2318795e-09
Marked as misclassified No
Message-id <1268940733.04.0.863127480117.issue8154@psf.upfronthosting.co.za>
In-reply-to
Content
I agree that this should be fixed, since we presumably want to be "strictly conforming" to the posix standards, but it looks like this is a regression in either linux or glibc.  From the standard's rational section:

Early proposals required that the value of argc passed to main() be "one or greater". This was driven by the same requirement in drafts of the ISO C standard. In fact, historical implementations have passed a value of zero when no arguments are supplied to the caller of the exec functions. This requirement was removed from the ISO C standard and subsequently removed from this volume of IEEE Std 1003.1-2001 as well. The wording, in particular the use of the word should, requires a Strictly Conforming POSIX Application to pass at least one argument to the exec function, thus guaranteeing that argc be one or greater when invoked by such an application. In fact, this is good practice, since many existing applications reference argv[0] without first checking the value of argc.
History
Date User Action Args
2010-03-18 19:32:13r.david.murraysetrecipients: + r.david.murray, theller, doko, pitrou, benjamin.peterson, Alexander.Belopolsky
2010-03-18 19:32:13r.david.murraysetmessageid: <1268940733.04.0.863127480117.issue8154@psf.upfronthosting.co.za>
2010-03-18 19:32:08r.david.murraylinkissue8154 messages
2010-03-18 19:32:07r.david.murraycreate