← Back to team overview

duplicity-team team mailing list archive

Re: [Question #215356]: spaces in include/exclude/source

 

Question #215356 on Duplicity changed:
https://answers.launchpad.net/duplicity/+question/215356

edso posted a new comment:
On 27.11.2012 17:35, Will Torres wrote:
> Question #215356 on Duplicity changed:
> https://answers.launchpad.net/duplicity/+question/215356
> 
>     Status: Open => Solved
> 
> Will Torres confirmed that the question is solved:
> well, it seems i have to run it through eval for it to work.
> 

no you don't ... but i see now that this is a general "how to shell
script" issue and has nothing to with duplicity itself.

try something like

PARAMS="--param1 'foo bar' --param2 'bla blup'"

duplicity $PARAMS

understand that your shell uses the outer double quotes to understand
that you want everything within to be assigned to var PARAM. after that
they are gone. so in order for the quotes to survive until used you have
to quote within quotes.

if that doesn't work, show me your script and i'll show you your error.

..ede/duply.net

-- 
You received this question notification because you are a member of
duplicity-team, which is an answer contact for Duplicity.