[dev-context] texexec return codes

Aditya Mahajan adityam at umich.edu
Wed Jan 10 16:17:46 CET 2007


On Wed, 10 Jan 2007, Hans Hagen wrote:

> Norbert Preining wrote:
> > On Mit, 10 Jan 2007, Hans Hagen wrote:
> > 
> >> i just uploaded a current with some patched to texexec (for norbert) 
> >> 
> >
> > Thanks a lot, but it is getting worse ;-) Now everything is the other
> > way round!!!! Ahhhhh
> >
> > 
> >> 	texmfstart --verbose texexec --make --all --fast en 
> >>
> >> should generate format and report success 
> >> 
> >
> > It reports success, but returns 1, which is bad:
> > execution was successful
> > bagnasciuga:~# echo $?
> > 1
> > bagnasciuga:~#
> >
> > 
> >> 	texmfstart --verbose texexec --make --all --fast xx 
> >>
> >> reports a failure and exits with code 1 
> >> 
> >
> > it reports 0!!
> >
> > execution failed
> > bagnasciuga:~# echo $?
> > 0
> > bagnasciuga:~#
> >
> > So we are close, but not finished ;-)
> > 
> 
> in scripts/context/ruby/switch.rb i say ...
>
>     def exit
>         if @error then Kernel.exit(1) else Kernel.exit(0) end
>     end

Maybe set Kernel.exit! rather than exit. exit! bypasses exception 
handling and at_exit stuff.

See http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/6482

Aditya





More information about the dev-context mailing list