From 8c888ea22c2fe69a068cda26e2ef63e833196bbf Mon Sep 17 00:00:00 2001 From: fiddlosopher Date: Wed, 15 Nov 2006 00:49:14 +0000 Subject: Fixed bug with 'shift' in html2markdown and markdown2pdf. git-svn-id: https://pandoc.googlecode.com/svn/trunk@102 788f1e2b-df1e-0410-8736-df70ead52e1b --- html2markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'html2markdown') 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 -- cgit v1.2.3