[dev-context] --passon won't pass on two arguments to pdftex

Sanjoy Mahajan sanjoy at mrao.cam.ac.uk
Tue Feb 6 15:21:01 CET 2007


>This is pdfTeXk, Version 3.141592-1.40.1 (Web2C 7.5.6)
>puzzled by the pdfTeXK name

Me too.  It just started happening here as well, even though running
pdftex gives only 'This is pdftex'.  I'm not sure what the cause is.

Meanwhile on the --passon: No luck even with the tex.rb that you sent me
offlist.  Here's the results in testing tree:

  $ TEXMFVAR=$PWD texexec --verbose --nonstopmode --passon="-file-line-error -recorder" /tmp/a.tex
  /tmp/2/scripts/context/ruby/texmfstart.rb:1838: warning: Insecure world writable dir /tmp, mode 041777
  TeXExec | processing document '/tmp/a.tex'
  TeXExec | using search method 'kpsewhich'
  ...
  TeXExec | running: pdftex -progname=context -fmt=cont-en -translate-file=natural.tcx -file-line-error --8bit /tmp/a.tex \emergencyend
  This is pdfTeXk, Version 3.141592-1.40.0 (Web2C 7.5.6)
   \write18 enabled.
   file:line:error style messages enabled.

So no -recorder option or a.fls file.

Using the usual scripts gives me the same result:

  $ texexec --verbose --nonstopmode --passon="-file-line-error -recorder" /tmp/a.tex
  /usr/share/texmf/scripts/context/ruby/texmfstart.rb:1838: warning: Insecure world writable dir /tmp, mode 041777
  /usr/share/texmf/scripts/context/ruby/base/system.rb:16: warning: Insecure world writable dir /tmp, mode 041777
  TeXExec | processing document '/tmp/a.tex'
  TeXExec | using search method 'kpsewhich'
  ...
  TeXExec | running: pdftex -progname=context -fmt=cont-en -translate-file=natural.tcx -file-line-error --8bit /tmp/a.tex \emergencyend
  This is pdfTeXk, Version 3.141592-1.40.0 (Web2C 7.5.6)
   \write18 enabled.
   file:line:error style messages enabled.


The diff doesn't have any changes that might fix --passon, so maybe the
fix lives in another .rb file?

$ find /usr/share/texmf/ . -name tex.rb | xargs diff -u
--- /usr/share/texmf/scripts/context/ruby/base/tex.rb	2007-01-22 08:04:35.000000000 -0500
+++ ./scripts/context/ruby/base/tex.rb	2007-02-06 08:59:02.000000000 -0500
@@ -671,6 +671,7 @@
             else
                 report("unable to make format due to lack of permissions")
                 texformatpath = ''
+                setvariable('error','no permissions to write')
             end
         else
             texformatpath = ''
@@ -1103,8 +1104,10 @@
                 end
             rescue TimeoutError
                 report("job aborted due to timeout '#{delay}'")
+                setvariable('error','timeout')
             rescue
                 report("job aborted due to error")
+                setvariable('error','fatal error')
             else
                 report("job finished within timeout '#{delay}'")
             end



-Sanjoy

`A nation of slaves is always prepared to applaud the clemency of their
 master who, in the abuse of absolute power, does not proceed to the
 last extremes of injustice and oppression.'  (Gibbon)  


More information about the dev-context mailing list