From ef3ecb42017959b32e9d64ec26502154d445d8d6 Mon Sep 17 00:00:00 2001 From: Damon McDougall Date: Sun, 26 May 2013 15:11:20 -0500 Subject: [PATCH] Fix return code parsing error --- python.sty | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python.sty b/python.sty index 346c89b..2cd1a0c 100644 --- a/python.sty +++ b/python.sty @@ -71,7 +71,7 @@ \ifwindows \immediate\write18{type \@pythoninclude\space\@outname.py 2> nul: | python > \@outname.py.out 2> \@outname.py.err & call echo ^\@percentchar ERRORLEVEL^\@percentchar > \@outname.rc} \else -\immediate\write18{cat \@pythoninclude\space\@outname.py | /usr/bin/env python > \@outname.py.out 2> \@outname.py.err; echo -n $? > \@outname.rc} +\immediate\write18{cat \@pythoninclude\space\@outname.py | /usr/bin/env python > \@outname.py.out 2> \@outname.py.err; echo $? > \@outname.rc} \fi \immediate\input\@outname.py.out