Re: [fossil-users] clone a repository over ssh where the path includes whitespace characters

2019-08-08 Thread Martin S. Weber
On 2019-08-08 08:25:30, Andy Bradford wrote:
> Thus said Stephan Beal on Thu, 08 Aug 2019 12:06:30 +0200:
>
> > fossil clone 'ssh://user@domain://path/to/"directory with
> > spaces"/my.fossil' my.fossil
>
> Yes, that  works, but it's  a hack really because  ...

Its behaviour is consistent with other network services whom you give
a single argument with spaces to find on the other host. E.g., scp,
rsync all require the same dance. Insofar it's just consistent, and,
I would argue, meets user expectations/experience.

Regards,
-Martin
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] clone a repository over ssh where the path includes whitespace characters

2019-08-08 Thread Andy Bradford
Thus said Stephan Beal on Thu, 08 Aug 2019 12:06:30 +0200:

> fossil clone 'ssh://user@domain://path/to/"directory with
> spaces"/my.fossil' my.fossil

Yes, that  works, but it's  a hack really because  the user has  to know
that  Fossil is  using /bin/sh  instead  of simply  calling exec()  with
appropriate arguments. In my opinion,  Fossil really should not be using
execl with /bin/sh here:

https://www.fossil-scm.org/home/artifact?udc=1=203=036510c48cbc9212

Instead, I think it would be preferable to do something like:

https://www.fossil-scm.org/home/info/ce7baa9798de21aa

Otherwise,  Fossil will  have to  be  enhanced to  start quoting  things
shell-style so the  user doesn't have to worry about  anything more than
quoting it in his shell. In other words, what Poor Yorick did by quoting
the entire string  should have been sufficient, but what  he didn't know
was that another  level of quotes was needed because  Fossil is going to
pass  it to  another /bin/sh  interpreter will  will require  additional
quoting---surprise.

Thanks,

Andy
-- 
TAI64 timestamp: 40005d4c30ff


___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] clone a repository over ssh where the path includes whitespace characters

2019-08-08 Thread Stephan Beal
On Thu, Aug 8, 2019 at 10:20 AM Poor Yorick 
wrote:
>
> Hello,
>
> Attempting to clone a repository over ssh where the path contains
whitespace
> characters:
>
> fossil clone 'ssh://user@domain://path/to/directory with
spaces/my.fossil' my.fossil
>
> Various attempts, including percent or plus encoding, all fail.  Is there
some
> incantation that works?

This mailing list isn't used any more. The current support forum is:

https://fossil-scm.org/forum/

That said, i'm going to take a wild guess as to a workaround:

fossil clone 'ssh://user@domain://path/to/"directory with
spaces"/my.fossil' my.fossil

(Note the extra quotes.)

i've no idea if that will really work, though.

-- 
- stephan beal
https://wanderinghorse.net/home/stephan/
"Freedom is sloppy. But since tyranny's the only guaranteed byproduct of
those who insist on a perfect world, freedom will have to do." -- Bigby Wolf
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] clone a repository over ssh where the path includes whitespace characters

2019-08-08 Thread Poor Yorick
Hello,

Attempting to clone a repository over ssh where the path contains whitespace
characters:

fossil clone 'ssh://user@domain://path/to/directory with 
spaces/my.fossil' my.fossil

Various attempts, including percent or plus encoding, all fail.  Is there some
incantation that works?

-- 
Poor Yorick
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users