ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* feature request: texexec with exit code > 0
@ 2006-06-19 22:38 Peter Münster
  2006-06-20  8:55 ` Hans Hagen
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Peter Münster @ 2006-06-19 22:38 UTC (permalink / raw)


Hello,

could "texexec --nonstopmode file" please exit with exit code > 0, if there
is an error (such as undefined control sequence)?

Cheers, Peter

-- 
http://pmrb.free.fr/contact/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: feature request: texexec with exit code > 0
  2006-06-19 22:38 feature request: texexec with exit code > 0 Peter Münster
@ 2006-06-20  8:55 ` Hans Hagen
  2006-06-20  9:51   ` Tobias Burnus
  2006-06-20 17:07   ` Peter Münster
  2006-06-20  9:07 ` Tobias Burnus
  2006-06-21 16:34 ` Peter Münster
  2 siblings, 2 replies; 8+ messages in thread
From: Hans Hagen @ 2006-06-20  8:55 UTC (permalink / raw)


� wrote:
> Hello,
>
> could "texexec --nonstopmode file" please exit with exit code > 0, if there
> is an error (such as undefined control sequence)?
>
>   
well, if you figure out the codes -) 

i always have problems with finding the right exit codes (not that consistent between script languages and os's) 

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: feature request: texexec with exit code > 0
  2006-06-19 22:38 feature request: texexec with exit code > 0 Peter Münster
  2006-06-20  8:55 ` Hans Hagen
@ 2006-06-20  9:07 ` Tobias Burnus
  2006-06-21 16:34 ` Peter Münster
  2 siblings, 0 replies; 8+ messages in thread
From: Tobias Burnus @ 2006-06-20  9:07 UTC (permalink / raw)


Hello,

Peter Münster schrieb:
> could "texexec --nonstopmode file" please exit with exit code > 0, if there
> is an error (such as undefined control sequence)?
>   
In similar vain: Could texexec stop after a non-successful TeX run?
Currently, there are several runs even if the first run was not successful.

Tobias

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: feature request: texexec with exit code > 0
  2006-06-20  8:55 ` Hans Hagen
@ 2006-06-20  9:51   ` Tobias Burnus
  2006-06-20 10:44     ` Hans Hagen
  2006-06-20 17:07   ` Peter Münster
  1 sibling, 1 reply; 8+ messages in thread
From: Tobias Burnus @ 2006-06-20  9:51 UTC (permalink / raw)


Hello,

Hans Hagen wrote:
> � wrote:
>   
>> Hello,
>>
>> could "texexec --nonstopmode file" please exit with exit code > 0, if there
>> is an error (such as undefined control sequence)?
>>     
> well, if you figure out the codes -)
> i always have problems with finding the right exit codes (not that consistent between script languages and os's) 
>   
Under Unix it is classically zero == no error, not zero == error. Which
non-zero number is returned is application dependent.

The POSIX standard 2001 (Single Unix Standard v3; (c) Open Group) writes
in its "Shell & Utilities section":

"The EXIT STATUS section describes the values the utility shall return
to the calling program, or shell, and the conditions that cause these
values to be returned. Usually, utilities return zero for successful
completion and values greater than zero for various error conditions. If
specific numeric values are listed in this section, the system shall use
those values for the errors described. In some cases, status values are
listed more loosely, such as >0. A strictly conforming application shall
not rely on any specific value in the range shown and shall be prepared
to receive any value in the range."


According to the ISO C99  standard, the default exit code is also 0:

"If the return type of the main function is a type compatible with int,
a return from the
initial call to the main function is equivalent to calling the exit
function with the value
returned by the main function as its argument;[...] reaching the } that
terminates the
main function returns a value of 0."

I do not know what DOS programs are doing, though.

Tobias

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: feature request: texexec with exit code > 0
  2006-06-20  9:51   ` Tobias Burnus
@ 2006-06-20 10:44     ` Hans Hagen
  0 siblings, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2006-06-20 10:44 UTC (permalink / raw)


Tobias Burnus wrote:
> Hello,
>
> Hans Hagen wrote:
>   
>> � wrote:
>>   
>>     
>>> Hello,
>>>
>>> could "texexec --nonstopmode file" please exit with exit code > 0, if there
>>> is an error (such as undefined control sequence)?
>>>     
>>>       
>> well, if you figure out the codes -)
>> i always have problems with finding the right exit codes (not that consistent between script languages and os's) 
>>   
>>     
> Under Unix it is classically zero == no error, not zero == error. Which
> non-zero number is returned is application dependent.
>   
you can test the uploaded beta 

Hans 

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: feature request: texexec with exit code > 0
  2006-06-20  8:55 ` Hans Hagen
  2006-06-20  9:51   ` Tobias Burnus
@ 2006-06-20 17:07   ` Peter Münster
  2006-06-20 17:19     ` Hans Hagen
  1 sibling, 1 reply; 8+ messages in thread
From: Peter Münster @ 2006-06-20 17:07 UTC (permalink / raw)


On Tue, 20 Jun 2006, Hans Hagen wrote:

> ? wrote:
> > Hello,
> >
> > could "texexec --nonstopmode file" please exit with exit code > 0, if there
> > is an error (such as undefined control sequence)?
> >
> >   
> well, if you figure out the codes -) 

Hello Hans,
you could just take the exit code of pdftex itself.
Cheers, Peter

-- 
http://pmrb.free.fr/contact/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: feature request: texexec with exit code > 0
  2006-06-20 17:07   ` Peter Münster
@ 2006-06-20 17:19     ` Hans Hagen
  0 siblings, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2006-06-20 17:19 UTC (permalink / raw)


� wrote:
> On Tue, 20 Jun 2006, Hans Hagen wrote:
>
>   
>> ? wrote:
>>     
>>> Hello,
>>>
>>> could "texexec --nonstopmode file" please exit with exit code > 0, if there
>>> is an error (such as undefined control sequence)?
>>>
>>>   
>>>       
>> well, if you figure out the codes -) 
>>     
>
> Hello Hans,
> you could just take the exit code of pdftex itself.
>   
i now just give back "1" 

Hans 

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: feature request: texexec with exit code > 0
  2006-06-19 22:38 feature request: texexec with exit code > 0 Peter Münster
  2006-06-20  8:55 ` Hans Hagen
  2006-06-20  9:07 ` Tobias Burnus
@ 2006-06-21 16:34 ` Peter Münster
  2 siblings, 0 replies; 8+ messages in thread
From: Peter Münster @ 2006-06-21 16:34 UTC (permalink / raw)


On Tue, 20 Jun 2006, Peter Münster wrote:

> could "texexec --nonstopmode file" please exit with exit code > 0, if there
> is an error (such as undefined control sequence)?

The same applies for texsync: it would be nice to get the exit code of the
rsync command.
Cheers, Peter

-- 
http://pmrb.free.fr/contact/

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-06-21 16:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-19 22:38 feature request: texexec with exit code > 0 Peter Münster
2006-06-20  8:55 ` Hans Hagen
2006-06-20  9:51   ` Tobias Burnus
2006-06-20 10:44     ` Hans Hagen
2006-06-20 17:07   ` Peter Münster
2006-06-20 17:19     ` Hans Hagen
2006-06-20  9:07 ` Tobias Burnus
2006-06-21 16:34 ` Peter Münster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).