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

            Bug ID: 2926
           Summary: In batch mode sftp echoes the prompt and the commands
                    back
           Product: Portable OpenSSH
           Version: 7.7p1
          Hardware: amd64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: sftp
          Assignee: [email protected]
          Reporter: [email protected]

Batch mode is meant for script automation, not human operations, so
echoing the prompt and the commands doesn't make any sense and needs
extra stuff while programatically processing the output

A possible solution that's also backward compatible with all uses of
the batch mode is to allow for a special prefix character to commands
to avoid any echoing, just like the "-" is used to avoid a single
failing command to terminate the session.

Something like "@" or "#" would be ok IMHO.

For example, the command syntax could become:

[@][-]<command> [arguments]...

The current workaround is to expunge every first output line, but am
not sure whether this can apply to all use cases.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
openssh-bugs mailing list
[email protected]
https://lists.mindrot.org/mailman/listinfo/openssh-bugs

Reply via email to