It's UWAweek 50

helpOSTS

This forum is provided to promote discussion amongst students enrolled in Open Source Tools and Scripting.

Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.

How do I ask a good question?
Displaying the 3 articles in this topic
Showing 3 of 445 articles.
Currently 1 other person reading this forum.


 UWA week 23 (1st semester, 1st exam week) ↓
SVG not supported

Login to reply

👍?
helpful
1:54pm Mon 3rd Jun, ANONYMOUS

Hi Sir, Good afternoon. I have a doubt about year 2022 paper solution. Why we use exit 0 after stderr, instead of exit 1? Thanks



This article has 1 attachment:

 

SVG not supported

Login to reply

👍?
helpful
12:31pm Tue 4th Jun, ANONYMOUS

I actually have the same doubt!


SVG not supported

Login to reply

👍?
helpful
12:39pm Tue 4th Jun, Michael W.

ANONYMOUS wrote:
> Hi Sir, > > Good afternoon. I have a doubt about year 2022 paper solution. Why we use exit 0 after stderr, instead of exit 1? > > Thanks
Hi, Fair question. That is just a matter of personal taste on my part. Not important. Recalled that exit status 0 implies success; status > 1 implies an error. I assume that if the user types a command without options they are trying to find out what the options are. Many programs achieve this with a -h or --help option. The response with the options is therefore a successful use of the program, not the result of an error state, hence status 0 in this case. Small stylistic point only. Cheers MichaelW 👨‍🎨

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  8:08AM Aug 25 2024
Privacy policy