[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svnsync: --sync-password doesnt accept the special charactert '$'?

From: Stefan Sperling <stsp_at_elego.de>
Date: Mon, 18 May 2009 18:28:30 +0100

On Mon, May 18, 2009 at 07:23:57PM +0200, fida aljounaidi wrote:
> Hello
> I'm tryingA to automate the "svnsync sync" command after every commit.
> On the post-commit script i put the command line :
> svnsync sync http://server.subversion/svn-mirror --sync-username
> syncusername --sync-password $syncpass (the sync password contain the
> character '$').
>
> This doesnt work. In fact, i have this error on the client console:
> post-commit hook failed (exit code 1) with output:
> svnsync: missing argument: --sync-password
>

On the command line, you need to put words that start with $ in quotes:
        --sync-password '$syncpass'

Otherwise the shell tries to expand the variable "syncpass".
It expands to an empty string if the variable is not defined.

Stefan
Received on 2009-05-18 19:29:23 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.