SSH.NET icon indicating copy to clipboard operation
SSH.NET copied to clipboard

Last line of SshCommand's 'Result' is inside 'Error' property despite exit code of 0

Open Reeceeboii opened this issue 2 years ago • 0 comments

I am running an SSH command, but despite the it running correctly and returning an exit code of 0, the last line of the output is being erroneously removed from the Result property, and instead being placed in the Error property. This is while the ExitStatus is 0, denoting that there was no error:

image The size: 65091 bytes (445 left) is actually the last line outputted by the nvram show command that I had previously executed. I am expecting this to be part of Result.

I am confused why this is being placed in the Error property.

Versions

SSH.NET: 2020.0.2 .NET Framework: 4.8

Reeceeboii avatar Jul 02 '23 02:07 Reeceeboii