Hi Hans,

In TeX Live on Linux, the "texexec" program consists of the following:

    #!/bin/sh
    mtxrun --usekpse --execute texexec.rb "$@"

However, running "texexec" currently leads to an infinite loop, with
"texexec" calling itself and never finishing. This seems to be because
"mtxrun --execute" ignores the file extension:

    $ strace -s 65535 -fe execve mtxrun --execute texexec.zzz
    execve("/usr/local/texlive/2025/bin/x86_64-linux/mtxrun", ["mtxrun", 
"--execute", "texexec.zzz"], 0x7ffd93f307e0 /* 74 vars */) = 0
    strace: Process 84108 attached
    [pid 84108] execve("/bin/sh", ["sh", "-c", "--", 
"\"/usr/local/texlive/2025/texmf-dist/scripts/context/stubs/unix/texexec\" "], 
0x30947480 /* 75 vars */) = 0
    [pid 84108] 
execve("/usr/local/texlive/2025/texmf-dist/scripts/context/stubs/unix/texexec", 
["/usr/local/texlive/2025/texmf-dist/scripts/context/stubs/unix/texexec"], 
0x56210d4cfbd0 /* 76 vars */) = 0
    strace: Process 84109 attached
    [pid 84109] execve("/usr/local/texlive/2025/bin/x86_64-linux/mtxrun", 
["mtxrun", "--usekpse", "--execute", "texexec.rb"], 0x55bd485ec290 /* 76 vars 
*/) = 0
    strace: Process 84110 attached
    [pid 84110] execve("/bin/sh", ["sh", "-c", "--", 
"\"/usr/local/texlive/2025/texmf-dist/scripts/context/stubs/unix/texexec\" "], 
0x7ffc76c4c2d0 /* 76 vars */) = 0
    [pid 84110] 
execve("/usr/local/texlive/2025/texmf-dist/scripts/context/stubs/unix/texexec", 
["/usr/local/texlive/2025/texmf-dist/scripts/context/stubs/unix/texexec"], 
0x555f62795c70 /* 76 vars */) = 0
    strace: Process 84111 attached
    [pid 84111] execve("/usr/local/texlive/2025/bin/x86_64-linux/mtxrun", 
["mtxrun", "--usekpse", "--execute", "texexec.rb"], 0x55693a97e290 /* 76 vars 
*/) = 0
    strace: Process 84113 attached
    [pid 84113] execve("/bin/sh", ["sh", "-c", "--", 
"\"/usr/local/texlive/2025/texmf-dist/scripts/context/stubs/unix/texexec\" "], 
0x7fffdd582850 /* 76 vars */) = 0
    [pid 84113] 
execve("/usr/local/texlive/2025/texmf-dist/scripts/context/stubs/unix/texexec", 
["/usr/local/texlive/2025/texmf-dist/scripts/context/stubs/unix/texexec"], 
0x561cd8710c70 /* 76 vars */) = 0
    strace: Process 84114 attached
    [...]

Manually running the Ruby script gives the expected output:

    $ ruby /usr/local/texlive/2025/texmf-dist/scripts/context/ruby/texexec.rb 
--version
    TeXExec | version 6.2.1 - 1997-2009 - PRAGMA ADE/POD

Can you please fix "mtxrun --execute" so that it follows the passed file
extension? Or if this is the intended behaviour, can you please tell me
what I need to change in the "texexec" script so that it works
correctly?

Thanks,
-- Max
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to