Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: [Win32] Successful system() call returns 256

by zek152 (Pilgrim)
on Jun 06, 2011 at 13:21 UTC ( [id://908290]=note: print w/replies, xml ) Need Help??


in reply to [Win32] Successful system() call returns 256

My win32 system does not have diff as a built in command. My guess is that you downloaded it. It would be difficult to help you without knowing what program you are using.

From memory and experience often 'diff' type programs return 'succesful' when the compared files are identical and return '!successful' when the files differ. The typical thought is that it is more useful to use the exit code to indicate file difference (or lack thereof) in addition to if the command ran without error.

Typically the exit code will be one value (say 1) if the files differ, another value (say 0) if they are the same, and a third value (say 2) if there was an error.

Hope this helps.

Update: typo found and fixed.

  • Comment on Re: [Win32] Successful system() call returns 256

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://908290]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (2)
As of 2026-01-14 14:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (118 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.