× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Where I come from STDERR isn't needed since all my code is flawless.

Regards,
Richard Schoen
Web: http://www.richardschoen.net
Email: richard@xxxxxxxxxxxxxxxxx
------------------------------

message: 3
date: Fri, 4 Aug 2023 10:32:48 -0400
from: John Yeung <gallium.arsenide@xxxxxxxxx>
subject: Re: QSH Messages

On Thu, Aug 3, 2023 at 4:05?PM Niels Liisberg <nli@xxxxxxxxxxxxxxxxx> wrote:

just to continue Richard ....

STDOUT and STDERR - to be more correct.

Richard barely acknowledges that stderr is the Unix convention for reporting error messages. He definitely does not think it has any role on IBM i, even in PASE, and he does not offer it as an option in his utilities. In his mind, STDOUT is mainly what Unix people think stderr is. Occasionally, he thinks of STDOUT as a combination of Unix's stdout and stderr. I think it's pretty normal for people to mentally combine stdout and stderr because by default, both of those are sent to the screen.

But all of that is kind of tangential to OP's question about the numeric exit *codes* returned by QSH. The fact is, there is no standardized meaning for those codes. It's up to each individual application. Different programs can use the same numeric values to mean different things. The closest thing to a universal convention for those exit codes is: zero means "normal" termination, nonzero means "abnormal" termination. An old Unix tradition is to return 2 for command line syntax error, and 1 for any other kind of error, but even that is a fairly weak convention.

John Y.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.