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

Re: svnserve: pre-lock arguments like &

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: Mon, 23 Nov 2009 15:54:22 +0000

Philip Martin wrote:
> svn-sth_at_mnet-online.de writes:
> > so i assume that svnserve is not starting the hook with right parameters,
> > i also assume that it is more like:
> >
> > /bin/sh -c ... $1 $2 $3
> >
> > instead of:
> >
> > /bin/sh -c ... "$1" "$2" "$3"
> >
> > can someone confirm on that.
>
> Your question should really be directed to the users mailing list. It
> would help if you included the failing script.
>
> To answer your question: Subversion doesn't invoke a shell; it execs
> the hook directly.

FWIW I tested with 1.6.5 and trunk_at_883366, with a "#!/bin/sh" pre-lock
hook, and the file name 'amazing space&ampersand' was passed correctly
as a single parameter.

- Julian

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2423446

Please start new threads on the <dev_at_subversion.apache.org> mailing list.
To subscribe to the new list, send an empty e-mail to <dev-subscribe_at_subversion.apache.org>.
Received on 2009-11-23 16:54:40 CET

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

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