🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.eunice
Article #70

Re: Message number 2? - (nf)

#70
From: jla
Date: Thu, 15 Dec 1983 18:31
16 lines
1173 bytes
This problem is caused by interaction between UNIX and VMS program return
values.  UNIX treats 0 as success, and non-zero as an error.  VMS has
a more complicated scheme, using the bottom three bits to hold the severity
of the error.

Eunice does a very half-hearted job of mapping UNIX onto VMS status.
It maps return of 0 to a VMS return of 1 (Success)
and passes any non-zero UNIX return through as it stands.
Most UNIX utilities return error codes of 1,  which comes through
looking exactly the same as a successful return.  This makes
writing VMS scripts using UNIX utilities very difficult.  The DCL
script to run the CC command is a case in point.

Has anybody out there done any fixes in this area?

Really:  Brendan Lynch
Technical Details
Message-ID: <351@houxt.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!linus!philabs!seismo!harpo!eagle!hou5h!hou5a!hou5d!hogpc!houxt!jla
References: pur-ee.1243

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!linus!philabs!seismo!harpo!eagle!hou5h!hou5a!hou5d!hogpc!houxt!jla
From: jla@houxt.UUCP
Newsgroups: net.eunice
Subject: Re: Message number 2? - (nf)
Message-ID: <351@houxt.UUCP>
Date: Thu, 15-Dec-83 13:31:25 EST
Article-I.D.: houxt.351
Posted: Thu Dec 15 13:31:25 1983
Date-Received: Sat, 17-Dec-83 02:48:14 EST
References: pur-ee.1243
Lines: 16