Name

expect_version

expect_version [[-exit] version]

Test version of Expect for compatibility. With no arguments, return the version of Expect. With an argument, generate an error if the version of Expect is different from the one specified.

The version parameter is a string in the form major-number.Minor-number.patch-level (e.g., 5.24.1). With the -exit option, the command also exits if the version of Expect is not the same as specified.

Get Tcl/Tk in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.