shellescape: \ifx\shellescape\undefined undefined \else \ifcase\shellescape 0 \or 1 \or 2 \fi \fi ifeof18: \ifeof18 1 \else 0 \fi \immediate\write18{echo written18} \bye