Public bug reported: If I have a malformed document like:
\documentclass{amsart} \begin{document} This is a test document with an image. \includegraphics[alt={a cute kitten},height=4in]{kitty.jpg} \end{NOTdocument} save as bad.tex if I compile it with either of the following options: latex -interaction=nonstopmode bad.tex latex -interaction=batchmode bad.tex then I expect the compilation NOT to stop and prompt me when it encounters the fatal error trying to compile this malformed document. Indeed on an ArchLinux box running a slightly newer release of TeXlive, this is exactly what happens. However, on Ubuntu 24.04.1 this is NOT what happens, instead I get prompted for how to deal with the error, like: ! LaTeX Error: \begin{document} ended by \end{NOTdocument}. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... l.17 \end{NOTdocument} furthermore, when running with the batchmode option: latex -interaction=batchmode bad.tex output is not suppressed as it should be (batchmode is supposed to be less verbose than normal latex operation). it seems like latex and pdflatex are simply just ignoring the -interaction=... option's value. I think I can work around this by redirecting stdin from /dev/null, but it's still incorrect behavior. I'll go ahead and attach an example TeX file, but I think the bug should be reproducible with any TeX file that doesn't compile without errors. ProblemType: Bug DistroRelease: Ubuntu 24.04 Package: texlive-latex-base 2023.20240207-1 ProcVersionSignature: Ubuntu 6.8.0-48.48~22.04.1-generic 6.8.12 Uname: Linux 6.8.0-48-generic x86_64 ApportVersion: 2.28.1-0ubuntu3.1 Architecture: amd64 CasperMD5CheckResult: unknown CloudArchitecture: x86_64 CloudBuildName: server CloudID: lxd CloudName: lxd CloudPlatform: lxd CloudSerial: 20231026 CloudSubPlatform: LXD socket API v. 1.0 (/dev/lxd/sock) Date: Fri Dec 6 23:20:16 2024 PackageArchitecture: all ProcEnviron: LANG=C.UTF-8 PATH=(custom, no user) SHELL=/bin/bash TERM=screen-256color XDG_RUNTIME_DIR=<set> SourcePackage: texlive-base UpgradeStatus: Upgraded to noble on 2024-11-03 (34 days ago) mtime.conffile..etc.init.d.apport: 2024-07-22T14:59:07 ** Affects: texlive-base (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug cloud-image noble ** Attachment added: "bad.tex" https://bugs.launchpad.net/bugs/2091192/+attachment/5842618/+files/bad.tex -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2091192 Title: latex, pdflatex, ... commands seem to ignore "-interaction" option To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/texlive-base/+bug/2091192/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs