1 Jul 2011 04:42
Re: running unison in bash script
Dan Christensen <jdc <at> uwo.ca>
2011-07-01 02:42:24 GMT
2011-07-01 02:42:24 GMT
İbrahim Ercan <ibrahim.ercan <at> engineer.com> writes:
> But when I write it like below it says "unison: Garbled argument -ignore." and it doesn't work
>
> a="-ignore=Regex dir3"
> b="-ignore=Regex dir4"
> e="$a $b"
> unison dir1 dir2 -batch -force dir1 -confirmbigdel=false "$e"
>
> Is there any way to fix that problem?
Try removing the quotes around $e in the last line... The quotes
tell the shell to interpret all of $e as one argument.
Dan
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/unison-users/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/unison-users/join
(Yahoo! ID required)
(Continue reading)
RSS Feed