[Dirvish] The FuhHoe post-server script

shouldbe q931 shouldbeq931 at gmail.com
Tue Jun 21 08:50:21 UTC 2011


On Mon, Jun 13, 2011 at 5:19 PM, Paul Slootman <paul at debian.org> wrote:
> On Sat 11 Jun 2011, shouldbe q931 wrote:
>>
>> I might have this completely about face, but could the "error" be
>> happening because the main dirvish perl script is trying to "SET" a
>> variable with a space in it before running the "post-server" script ?
>
> Actually, it looke like you may be sort of right.
>
> The dirvish script does:
>
>    $rcmd = sprintf ("%s 'cd %s; %s %s' >>%s",
>            ("$A{shell}" || "/bin/sh -c"),
>            $A{dir}, $A{env},
>            $cmd,
>            $A{log}
>    );
>
> and then executes the string in $rcmd as a shell command.
> The %s strings probably need to be escaped.
> I'll have a look to see what needs fixing tomorrow (if no one beats me
> to it :-)
>
>
> Paul
> _______________________________________________

I wondered if you had managed to have a look ?

Cheers


More information about the Dirvish mailing list