[Bug 2860] "-lc" should be used for non-interactive session

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Thu May 3 15:57:10 AEST 2018


https://bugzilla.mindrot.org/show_bug.cgi?id=2860

Tom Yan <tom.ty89 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WONTFIX                     |---

--- Comment #2 from Tom Yan <tom.ty89 at gmail.com> ---
> Command execution sessions are assumed to be non-interactive

Of course, but login shell is not equivalent to interactive shell


> Shell profile scripts are allows to contain actions that write to stdout and these would interfere with ssh being used as a transport if sourced

It is the responsibility of the script writer that he/she should make
sure such actions are only performed in interactive shell (e.g. by
checking whether "$-" has i, or by putting them in the "rc" file
instead).

It does not really make sense to break the non-interactive command
execution environment just for that, because ssh is logging in either
way.

-- 
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list