Login | Register
My pages Projects Community openCollabNet

Discussions > dev [DISABLED] > Re: svnserve: pre-lock arguments like &

subversion
Discussion topic

Back to topic list

Re: svnserve: pre-lock arguments like &

Author brane
Full name Branko Cibej
Date 2009-11-23 08:27:53 PST
Message Julian Foad wrote:
> Philip Martin wrote:
>
>> svn-sth at mnet-online dot 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@883366, with a "#!/bin/sh" pre-lock
> hook, and the file name 'amazing space&ampersand' was passed correctly
> as a single parameter.
>

Yup, sure. Problems begin when you try to do anything with such a
parameter and forget about properly quoting the expansion.

-- Brane

« Previous message in topic | 4 of 6 | Next message in topic »

Messages

Show all messages in topic

svnserve: pre-lock arguments like & svn-sth at mnet-online dot de svn-sth at mnet-online dot de 2009-11-23 02:06:45 PST
     Re: svnserve: pre-lock arguments like & philip Philip Martin 2009-11-23 03:43:53 PST
         Re: svnserve: pre-lock arguments like & julianfoad Julian Foad 2009-11-23 07:54:29 PST
             Re: svnserve: pre-lock arguments like & brane Branko Cibej 2009-11-23 08:27:53 PST
                 Re: svnserve: pre-lock arguments like & svn-sth at mnet-online dot de svn-sth at mnet-online dot de 2009-11-24 06:56:25 PST
                     Re: svnserve: pre-lock arguments like & hwright Hyrum K. Wright 2009-11-24 07:07:45 PST
Messages per page: