W3C home > Mailing lists > Public > xproc-dev@w3.org > June 2012

Re: Calabash: How to quote whitespace in a parameter for the Bash shell?

From: Dr. Yves Forkl <Y.Forkl@srz.de>
Date: Tue, 05 Jun 2012 11:34:08 +0200
Message-ID: <4FCDD290.6040001@srz.de>
To: XProc Dev <xproc-dev@w3.org>
Meanwhile, I was able to find the solution myself, which (of course ;-) ) is quite easy:

It is enough to enclose $@ in double quotes, so my run_xproc now looks like:

java -cp "/usr/local/lib/saxon9.4/saxon9he.jar:/usr/local/lib/calabash/current/calabash.jar" \
  -Dcom.xmlcalabash.phonehome=false com.xmlcalabash.drivers.Main "$@"

And my other script which is calling the above remains:

run_xproc \
  -isource=mysourcedoc.xml \
  mypipeline.xpl \
  doctype_public="-//OASIS//DTD DocBook XML V4.5//EN"

Received on Tuesday, 5 June 2012 09:34:41 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:03:10 UTC