diff options
author | Karl Berry <karl@freefriends.org> | 2010-02-18 18:03:18 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-02-18 18:03:18 +0000 |
commit | e826cf1e931e56a27391f357253038be01f25396 (patch) | |
tree | 2f3195394c18fc3fde2b8ef8ef4de296e96d4a08 /Build/source/texk/dvipsk/testdata | |
parent | 265ec325225e513352908a8d61e2d0bc06d6ca09 (diff) |
move common-test.pl to common directory; new popen/gzip test for dvipsk
git-svn-id: svn://tug.org/texlive/trunk@17085 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipsk/testdata')
-rw-r--r-- | Build/source/texk/dvipsk/testdata/quotecmd.tex | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Build/source/texk/dvipsk/testdata/quotecmd.tex b/Build/source/texk/dvipsk/testdata/quotecmd.tex new file mode 100644 index 00000000000..a294e703aa1 --- /dev/null +++ b/Build/source/texk/dvipsk/testdata/quotecmd.tex @@ -0,0 +1,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 |