[Bug 2926] New: In batch mode sftp echoes the prompt and the commands back

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Sun Nov 4 03:48:52 AEDT 2018


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: unassigned-bugs at mindrot.org
          Reporter: vincenzo.romano at notorand.it

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.


More information about the openssh-bugs mailing list