aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorDaniel T. Staal <DStaal@usa.net>2014-05-13 19:59:20 -0400
committerDaniel T. Staal <DStaal@usa.net>2014-05-13 19:59:20 -0400
commit88d8f7428a80e1296ba43226bd49c366623b49ff (patch)
treed79599d487535a3578152b449f1a02f936e2e77e /src/Text
parentdfcc32ac9f1ebe58f99b4fcf34516897b231bacf (diff)
downloadpandoc-88d8f7428a80e1296ba43226bd49c366623b49ff.tar.gz
Code cleanup and debug.
Various cleanups: - @pkg_info was never used. Removed. - Simplified getting the list of files slightly. - Used list form of system(). This prevents shell interpretation of command and arguments, preventing bugs. (And solves one.) - Changed $! (OS_ERROR) to $? (CHILD_ERROR) after system() calls to get the error from the external program. (Note that $? is the numeric return code from the child program.) - Allow script to continue after finding some of the files have been removed previously. - Convert 'warn "…"; exit 1;' to 'die "…";', the more common equivalent idiom. - Convert 'exit 0;' to 'exit;', to be more clear we are not exiting abnormally. Signed-off-by: Daniel T. Staal <DStaal@usa.net>
Diffstat (limited to 'src/Text')
0 files changed, 0 insertions, 0 deletions