• Support
  • Articles
  • Resources
  • Products

TeraTERM 4.90 bug

Moderator: boris

5 postsPage 1 of 1

IshmaelCallMe
Guru

Posts:
672
Joined: Thu Jan 26, 2006 2:28 am
by IshmaelCallMe » Mon Mar 07, 2016 8:47 pm
Looks like the newest 4.90 version has a bug. The following simple macro code snippet now sends a syntax error, whereas it never did before.

ws=2
if ws=2 end

Thanks!
Brian
boris
Moderator, LogMeTT and TTLEditor developer

Posts:
1596
Joined: Sat Jan 08, 2005 2:52 pm
by boris » Mon Mar 07, 2016 10:48 pm
Hi Brian,

I don't think if ws=2 end is valid syntax. If command description says there should be then word after the condition. Here is what worked for me:

Code: Select all

  1. ws=2
  2. if ws=2 then
  3. end
Thanks.
Best regards,
Boris
Yutaka Hirata
TeraTerm Developer

Posts:
606
Joined: Wed Jan 12, 2005 2:35 pm
by Yutaka Hirata » Tue Mar 08, 2016 1:08 pm
Hi everyone,

Tera Term 4.90 has your problem of if macro command. When if has command
without parameter, syntax error occurs. This bug is from Tera Term 4.90 not
4.89 or earlier.
We have fixed this bug into the repository. Please test below archive.

http://ttssh2.osdn.jp/snapshot/snapshot-20160308.zip

I am sorry for the inconvenience.
Best regards, Yutaka Hirata
(yutakakn at gmail.com)
http://hp.vector.co.jp/authors/VA013320/
IshmaelCallMe
Guru

Posts:
672
Joined: Thu Jan 26, 2006 2:28 am
by IshmaelCallMe » Tue Mar 08, 2016 4:27 pm
The fix looks good. Thanks, Yutaka!

Boris, you only need the "then" after an "if" if you want to have multiple statements. You also then need to terminate it with an endif. For just one command on an if, "then" and "endif" are not needed. This makes for some nice concise code.

Brian
boris
Moderator, LogMeTT and TTLEditor developer

Posts:
1596
Joined: Sat Jan 08, 2005 2:52 pm
by boris » Tue Mar 08, 2016 6:11 pm
Actually you are right. I, by some reason, missed Format 1 in if command description. :oops:
Thanks.
Best regards,
Boris
Display posts from previous:
Sort by:

5 postsPage 1 of 1

Users browsing this forum: No registered users
cron