[metapost] Command "show" on a non-empty "path" makes mpost(1) return with error code 1

luigi scarso luigi.scarso at gmail.com
Thu Dec 4 10:09:02 CET 2014


On Thu, Dec 4, 2014 at 9:35 AM, Akira Kakuto <kakuto at fuk.kindai.ac.jp>
wrote:

> Hi Luigi,
>
>  I have to see the pre-C version of metapost --- but we could decide to
>> accept a different behavior as well.
>>
>
> I have confirmed that mpost 0.641 exits with 0 in both cases.
> So it will be better to follow 0.641 in this case.
>
> Thanks,
> Akira
>
> --
> http://tug.org/metapost/
>

mp.ch from metapost-0.62.tar.gz
( http://ftp.math.utah.edu/pub/tex/historic/systems/metapost/ )

says

@x
procedure that quietly terminates the program.

@<Error hand...@>=
procedure jump_out;
begin goto end_of_MP;
end;
@y
procedure that quietly terminates the program.

Use the value of |history| to determine what exit-code to use.  We use
1 if |history <> spotless| and 0 otherwise.

@<Error hand...@>=
procedure jump_out;
begin
close_files_and_terminate;
ready_already:=0;
if (history <> spotless) and (history <> warning_issued) then
    uexit(1)
else
    uexit(0);
end;
@z

so, ok I will fix it in trunk.

-- 
luigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/metapost/attachments/20141204/823271c7/attachment.html>


More information about the metapost mailing list