It's UWAweek 47

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 selected article
Showing 1 of 445 articles.
Currently 59 other people reading this forum.


 UWA week 23 (1st semester, 1st exam week) ↓
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