Ticket #31374

waitとwaitregexの動作の違い

Date d'ouverture: 2013-05-16 17:33 Dernière mise à jour: 2013-06-01 11:57

Rapporteur:
Propriétaire:
(Aucun)
Type:
État:
Atteints
Composant:
Jalon:
(Aucun)
Priorité:
5 - moyen
Sévérité:
5 - moyen
Résolution:
Fixed
Fichier:
Aucun
Vote
Score: 0
No votes
0.0% (0/0)
0.0% (0/0)

Détails

wait/waitlnとwaitregexで複数のパラメータを指定した時の動作が違う。

例えば "ABC" という文字列を受信した時、

wait "ABC" "ABC"
では result が 1 になるが、(前のパラメータ優先)
waitregex "ABC" "ABC"
では result が 2 になる。(後ろのパラメータ優先)

また、"ABCdef" という文字列を受信した時、

wait "ABCdef" "ABC"
では result が 2 になるが、(一文字づつチェックし、先に確定した物が優先)
wait "ABC" "ABCdef"
では通常は result が 2 になる。(基本は行単位でチェックになるので、長い文字列でも先にマッチする事がある)
さらに、受信データが一パケットで来ず、一文字ずつ別のパケットで受信した場合は result が 1 になる。

Ticket History (3/4 Histories)

2013-05-16 17:33 Updated by: doda
  • New Ticket "waitとwaitregexの動作の違い" created
2013-05-24 22:38 Updated by: (del#1144)
2013-06-01 09:01 Updated by: None
2013-06-01 11:57 Updated by: (del#1144)
  • État Update from Ouvert to Atteints
  • Jalon Update from Tera Term 4.78 (atteints) to (Aucun)
  • Ticket Close date is changed to 2013-06-01 11:57

Attachment File List

No attachments

Modifier

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Connexion