[Bug 2339] New: openssh consumes stdin even if command isn't interactive
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Wed Jan 21 23:57:07 AEDT 2015
https://bugzilla.mindrot.org/show_bug.cgi?id=2339
Bug ID: 2339
Summary: openssh consumes stdin even if command isn't
interactive
Product: Portable OpenSSH
Version: 5.9p1
Hardware: Other
OS: Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: Documentation
Assignee: unassigned-bugs at mindrot.org
Reporter: ebrauer-mailing at tofex.de
As ssh has the -n option for this (and therefor I'd treat this as a
documentation enhancement), it should be clearly stated in the manual
page that even a "ssh <host> true" will eat stdin. This is especially
not obvious here (bash script):
echo -e "1\n2\n3" | while read s; do echo Hello; done
vs.
echo -e "1\n2\n3" | while read s; do ssh <host> echo Hello; done
Please, add this to documentation - it'd have saved me some time ;)
Kind regards
Eckard
--
You are receiving this mail because:
You are watching the assignee of the bug.
More information about the openssh-bugs
mailing list