git.iko.soy/typeable/pandoc
on master help sign in
Fixed bug with 'shift' in html2markdown and markdown2pdf.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@102 788f1e2b-df1e-0410-8736-df70ead52e1b

commit8c888ea22c2fe69a068cda26e2ef63e833196bbf authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateWed 15 Nov 2006, 00:49 (20 years ago) parent79fdbce
2 files changed+4−4
html2markdown+2−2 markdown2pdf+2−2
html2markdown+2−2
@@ -30,9 +30,9 @@ REST=${ALL#$ARGS}; REST=${REST# -- }
3030PANDOC_OPTS=${REST:-$PANDOC_OPTS}
3131
3232infile=$1
33−shift
3433
35−if [ -n "$@" ]; then
34+if [ $# -gt 1 ]; then
35+ shift
3636 echo >&2 "Warning: extra arguments '$@' will be ignored!"
3737fi
3838
markdown2pdf+2−2
@@ -59,9 +59,9 @@ done
5959}
6060
6161infile=$1
62−shift
6362
64−if [ -n "$@" ]; then
63+if [ $# -gt 1 ]; then
64+ shift
6565 echo >&2 "Warning: extra arguments '$@' will be ignored!"
6666fi
6767