summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipsk/testdata/quotecmd.tex
blob: a294e703aa1eed214b60399bb8be4ea6bc6197c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
% $Id: write18-quote.tex 16695 2010-01-13 01:18:02Z karl $
% Public domain.  Originally written 2009, Alexander Cherepanov.

\catcode`\# = 12
\def\cmd{" 2>&1 | echo badnews > pwned.txt #.gz"}

% create this weirdly-named file.
\catcode0 = 12
\immediate\openout1 \cmd^^@
\immediate\closeout1

% write out a special referring to it.
% if it exists when dvips is run, it will be executed with popen.
\special{psfile=\cmd}
\nopagenumbers
\end