From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021130
Description of problem:
It seems as if the -n flag has no effect. Doing...
ssh foo cat /etc/redhat-release
... works fine, but if I do...
cat|ssh foo cat /etc/redhat-release
... I don't get my prompt back after finding out foo's RH version. To work
around this, I tried the -n flag, which is supposed to "Redirect input from
/dev/null." according to "ssh --help". However, doing...
cat|ssh -n foo cat /etc/redhat-release
... has the same problem. The reason I thought it would help to "Redirect input
from /dev/null." was that this works fine as well:
cat /dev/null|ssh foo cat /etc/redhat-release
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. cat|ssh -n foo cat /etc/redhat-release
Actual Results: I get to see foo's Redhat version string, but I don't get my
prompt back after that.
Expected Results: I should have gotten to see foo's Redhat version string, and
gotten my prompt back afterwards.
I'm starting to get the feeling that the reason is not ssh, but that cat wants
stdin to EOF before I get my prompt back. If this is really what's going on
here this should be NOTABUG, but I still want a second opinion on it (even if
that opinion is NOTABUG :-).
Re comment #1 - of course :-)