From f3bfd00a619fa23078e7fddf2de4bc537a8ca0c4 Mon Sep 17 00:00:00 2001 From: Yvan Roux Date: Mon, 25 Apr 2016 11:09:52 +0200 Subject: Keep trailing newline in remote execution output * lib/rsh.exp (rsh_exec): Don't remove trailing newline. * lib/ssh.exp (rsh_exec): Likewise. --- lib/rsh.exp | 3 --- lib/ssh.exp | 3 --- 2 files changed, 6 deletions(-) (limited to 'lib') diff --git a/lib/rsh.exp b/lib/rsh.exp index 5b583c6..43f5430 100644 --- a/lib/rsh.exp +++ b/lib/rsh.exp @@ -283,8 +283,5 @@ proc rsh_exec { boardname program pargs inp outp } { return [list -1 "Couldn't parse $RSH output, $output."] } regsub "XYZ(\[0-9\]*)ZYX\n?" $output "" output - # Delete one trailing \n because that is what `exec' will do and we want - # to behave identical to it. - regsub "\n$" $output "" output return [list [expr {$status != 0}] $output] } diff --git a/lib/ssh.exp b/lib/ssh.exp index 0cf0f8d..a72f794 100644 --- a/lib/ssh.exp +++ b/lib/ssh.exp @@ -194,9 +194,6 @@ proc ssh_exec { boardname program pargs inp outp } { return [list -1 "Couldn't parse $SSH output, $output."] } regsub "XYZ(\[0-9\]*)ZYX\n?" $output "" output - # Delete one trailing \n because that is what `exec' will do and we want - # to behave identical to it. - regsub "\n$" $output "" output return [list [expr {$status != 0}] $output] } -- cgit v1.1