Mark,
The cases that generate exit codes greater than 1 in
historical practice include finding an invalid expression such as
test "a" "b"
since there is no operator specified
or test -U file
where -U is an unknown unary operator
or test string1 -U string2
where -U is an unknown binary operator. (Of course there is no
requirement that the test utility generate an error message and exit >1
for any of these since all of these cases are explicitly specified to
produce unspecified results.)
Don
>From yyyyyyyyyyyyyyyyyyyyyy@xxxxxxxxxxxxx Thu May 29 20:47:36 2003
>Resent-Date: 30 May 2003 03:44:46 -0000
>From: "Mark Funkenhauser" <yyyyyyyyyyyyy@xxxxxxxxxx>
>To: <yyyyyyyyyyyyyy@xxxxxxxxxxxxx>
>Subject: RE: Re: Re: Re: Defect in XCU test
>X-MSMail-Priority: Normal
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
>Importance: Normal
>X-Authentication-Info: Submitted using SMTP AUTH LOGIN at
>fep04-mail.bloor.is.net.cable.rogers.com from [24.42.26.95] using ID
><yyyyyyyyyyyyy@xxxxxxxxxx> at Thu, 29 May 2003 23:44:05 -0400
>X-Spam-Status: No, hits=-7.2 required=5.0
>tests=AWL,BAYES_30,IN_REP_TO,ORIGINAL_MESSAGE version=2.54
>Resent-Message-ID: <yyyyyyyyyyyyyyyyy@xxxxxxx>
>Resent-To: yyyyyyyyyyyyyy@xxxxxxxxxxxxx
>Resent-From: yyyyyyyyyyyyyy@xxxxxxxxxxxxx
>X-Mailing-List: austin-group-l:archive/latest/5373
>X-Loop: yyyyyyyyyyyyyy@xxxxxxxxxxxxx
>Resent-Sender: yyyyyyyyyyyyyyyyyyyyyy@xxxxxxxxxxxxx
>
>
>How does one define "what is an error" with respect to the operation of
>the test utility ?
>Was there ever a case where a historical UNIX implementation
>returned an exit status other than 0 or 1 ? If so, what was this case ?
>If not, then is there any rationale for adding ">1 an error occured"
>to the standard ?
>
... ... ...
>
>mark
... ... ...
|