This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: CygwinReturnCode


On Sat, Nov 23, 2002 at 08:42:47AM +0000, g frances wrote:
> 	returncode = os.system(r' grep SUCCESS c:/temp/out.txt')
> 	if returncode == 1:
> 		returncode == 1

The above code is suspect.

BTW, I get the following:

    $ python -c 'import sys; sys.exit(0)'; echo $?
    0
    $ python -c 'import sys; sys.exit(1)'; echo $?
    1

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]