From 426cbadfef6c26323faedcab2cd5ea7efa64d1bb Mon Sep 17 00:00:00 2001 From: roktas Date: Tue, 12 Dec 2006 07:04:09 +0000 Subject: Merge changes in branches/wrappers into trunk. [in trunk] svn merge -r105:HEAD \ https://pandoc.googlecode.com/svn/branches/wrappers git-svn-id: https://pandoc.googlecode.com/svn/trunk@177 788f1e2b-df1e-0410-8736-df70ead52e1b --- src/wrappers/singlearg.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/wrappers/singlearg.sh (limited to 'src/wrappers/singlearg.sh') diff --git a/src/wrappers/singlearg.sh b/src/wrappers/singlearg.sh new file mode 100644 index 000000000..f742d1383 --- /dev/null +++ b/src/wrappers/singlearg.sh @@ -0,0 +1,7 @@ +# Ensure to work with a single argument. +if [ $# -gt 1 ]; then + first_arg="$1" + shift + err "Warning: extra arguments '$@' will be ignored." + set -- $first_arg +fi -- cgit v1.2.3