$scp->send("$password\n");
Quite frankly, I don't understand how it could work *without* a newline. In addition, I've hit some kind of weird bug while attempting to connect to a FreeBSD system. I connect, the password is sent, and yet....it sits there, still waiting for the password. Works fine on the other systems I've tested. Very strange. Oh, and I still don't know why copying large files works for some people and not for others. One use has reported that copying large files works as root, but not as a normal user.
Sigh. Well, this was only meant to be a standin module until a "real" scp module was written, but that hasn't materialized. I was almost ready to release, too. I'm debating whether or not to just put some of these things in a "known but inexplicable bugs" section and just release anyway.
\n or \r? (Score:4, Informative)
In TCL Expect, I always had to use \r. I've still never mastered exactly when you have to do that for Expect.pm, and when you can get away with \n. Could it vary from system to system? What does the user get when he tries \r? Do we even know when we can use each and why?
I'm debating whether or not to just put some of these things in a "known but inexplicable bugs" section and just release anyway.
Do it. Standard manpages don't have a BUGS section for nothing, you know. You can fix them later, if you feel like it. There's no rule that says a release is bugless.
J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers
Reply to This
Re:\n or \r? (Score:2)
Everything else works for me, including large files and globbing. I'm also debating whether to require 5.6, but I'm worried I'll piss too many people off. I wish I had done it from the start.
Re:\n or \r? (Score:3, Informative)
Re:\n or \r? (Score:2)
Re:\n or \r? (Score:2)
Re:\n or \r? (Score:2)
Re:\n or \r? (Score:2)
I think the terminator to use depends on whether the terminal is in raw or cooked mode, so you might be able to check the mode and decide as appropriate. I think cooked mode translates \r to \n. I think I heard that \n should "always" work, for some value of always sufficiently less than or equal to 100%. :)
But I really don't know.
J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers
Re:\n or \r? (Score:2)
Standard manpages don't have a BUGS section for nothing, you know.
Oh, and while you're at it, that's why they have SKIP tests in Test::More. :)
J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers