Quantcast
Channel: All Open Tickets - Tera Term on OSDN
Viewing all articles
Browse latest Browse all 2128

Extra space received if text line wraps - Tera Term Ticket #39360 on OSDN

$
0
0

Extra space received if text line wraps

Eröffnet am: 2019-06-29 21:06

Letztes Update: 2019-08-22 03:08

Auswertung:(Anonym)Verantwortlicher:doda
Priorität:5 - MittelMeilenstein:(Keine)
Typ:FehlerSchweregrad:5 - Mittel
Komponente:Tera TermStatus:Offen [Owner assigned]
LösungWon't Fix

Einzelheiten

I have connected to a linux box and I want to run a recursive MD5SUM from a directory that I navigate to.

So I send the following commands:

cd /media/USB_HDD_4/ReadyNAS-A/data/Documents
pwd
find . -type f -exec md5sum '{}' \;

Before sending the #10 to finish the line, I wait for the entire sent cmd to be echoed back:

send cmdline
wait cmdline
send #10

However, the matching of the 3rd line being received failed and I eventually got a connection timeout. I was logging the session and I found that what was perceived as received contained an extra space between the word "exec" and the word "md5sum". I sent 1 space but 2 were recorded in the log:

Tx: find#.#-type#f#-exec#md5sum#'{}'#\;

Rx: find#.#-type#f#-exec##md5sum#'{}'#\;

(I have used "#" to represent spaces due to the way that this portal seems to adjust the formatting of my post - at least in preview mode)

What I then noticed was that my terminal window was 80x24 and the "c" of "exec" was the last character of a line. This caused a wrap on the screen and the next line that appeared normally in teraterm, beginning " md5", was recorded in the log file with an extra space.

To prove the point, I resized the terminal window to be 120x24. When I re-ran the script the stuff I was waiting for no longer wraped to the next line and my wait matched perfectly and the script ran.

I can continue for now... until the time when whatever I am doing happens to wrap this workaround screen width.

Kind regards,

Ian

Letzte Aktualisierung für dieses Ticket

2019-08-22 03:08 Aktualisiert von: doda

  • Verantwortlicher Update from (Keine) to doda
  • Lösung Update from Keine to Won't Fix
  • Komponente Update from (Keine) to Tera Term
  • Details Updated

Kommentar

Extra space is sent by the shell.

It is correct behavior that Tera Term passes the space to macro.


Viewing all articles
Browse latest Browse all 2128