-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation for open-remote-pipe* is misleading #39
Comments
Hello! Yes, currently
It's not clear for me what do you expect from the procedure. Could you please share your workaround? Maybe that way I can better understand how to fix the documentation (or the procedure itself, for that matter.) Thanks, |
Hi :)
Sure, I would have expected My workaround is:
That seems to do what I need, as long as there is POSIX-compatible shell on the other end. |
Change (ssh popen) procedures to make their behavior match the behavior of "open-pipe*" procedure. Reported by graywolf in <#39> * modules/ssh/popen.scm (string-replace-substring): New procedure. (shell-quote): New procedure. (open-remote-pipe*, open-remote-input-pipe*, open-remote-output-pipe*): Use "shell-quote" to quote arguments to make procedures behavior match the "open-pipe*" behavior. * tests/common.scm (start-server/exec): Update. * NEWS: Update.
Hello! I pushed changes that address this issue as 7a6c86f Please check if it works for you. Thanks, |
Can confirm the commit does work, thank you :) |
The documentation claims
However what is actually executed is the equivalent of
(string-append prog " " (string-join args " "))
. That is quite surprising, given the signature of the procedure, so I believe it should be documented.Working around it (and getting actual equivalent of
open-pipe*
) is not hard, but one has to know it is necessary and I find that somewhat hard to figure out from the current documentation.The text was updated successfully, but these errors were encountered: