summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipsk/testdata/quotecmd.tex
blob: f65fe3f88175dffe078f480bd372ac593840b7df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
% $Id: write18-quote.tex 16695 2010-01-13 01:18:02Z karl $
% Public domain.  Originally written by Karl Berry,
% with ideas from 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