[tex-live] Bug?: pdflatex hangs with self-referential \newcommand{\bad}{\bad} definition

Zdenek Wagner zdenek.wagner at gmail.com
Wed Jan 9 17:21:19 CET 2019


The problem with \newcommand{\bad}{\bad} is that it is a tail
expansion, this means that it does not eat stack, it just loops
forever.  \newcommand{\bad}{\bad x} will probably report stack
overflow. It is documented in The TeXbook.

Zdeněk Wagner
http://ttsm.icpf.cas.cz/team/wagner.shtml
http://icebearsoft.euweb.cz

st 9. 1. 2019 v 17:09 odesílatel Philip Taylor <P.Taylor at rhul.ac.uk> napsal:
>
> David Carlisle wrote:
> > This plain tex document also loops
> >
> > \let\par\relax x\vfill
>
> This one is more fun:
>
>         \tracingall \let \par = \relax x \vfill
>
> ** Phil.
>



More information about the tex-live mailing list