diff options
author | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2006-11-15 00:49:14 +0000 |
---|---|---|
committer | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2006-11-15 00:49:14 +0000 |
commit | 8c888ea22c2fe69a068cda26e2ef63e833196bbf (patch) | |
tree | af724e57d2c8f7b8da70cafa1715630afa513fa9 | |
parent | 79fdbcea695e41a7d5033f50ac3e99ae52312949 (diff) | |
download | pandoc-8c888ea22c2fe69a068cda26e2ef63e833196bbf.tar.gz |
Fixed bug with 'shift' in html2markdown and markdown2pdf.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@102 788f1e2b-df1e-0410-8736-df70ead52e1b
-rw-r--r-- | html2markdown | 4 | ||||
-rw-r--r-- | markdown2pdf | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/html2markdown b/html2markdown index 9549bc4e1..53ea05c08 100644 --- a/html2markdown +++ b/html2markdown @@ -30,9 +30,9 @@ REST=${ALL#$ARGS}; REST=${REST# -- } PANDOC_OPTS=${REST:-$PANDOC_OPTS} infile=$1 -shift -if [ -n "$@" ]; then +if [ $# -gt 1 ]; then + shift echo >&2 "Warning: extra arguments '$@' will be ignored!" fi diff --git a/markdown2pdf b/markdown2pdf index 0307f73cf..03d43d472 100644 --- a/markdown2pdf +++ b/markdown2pdf @@ -59,9 +59,9 @@ done } infile=$1 -shift -if [ -n "$@" ]; then +if [ $# -gt 1 ]; then + shift echo >&2 "Warning: extra arguments '$@' will be ignored!" fi |