Browse Source

Keep trailing newline in remote execution output

* lib/rsh.exp (rsh_exec): Don't remove trailing newline.
	* lib/ssh.exp (rsh_exec): Likewise.
farm
Yvan Roux 10 years ago
committed by Jacob Bachmeyer
parent
commit
f3bfd00a61
  1. 3
      lib/rsh.exp
  2. 3
      lib/ssh.exp

3
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]
}

3
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]
}

Loading…
Cancel
Save