{ "name": "expect", "version": "5.45.4", "summary": "Expect: scripts that talk to interactive programs (ssh, ftp, passwd) through a pseudo-terminal, in Tcl", "category": "language", "license": "LicenseRef-expect", "homepage": "https://core.tcl-lang.org/expect/", "source": { "url": "https://sourceforge.net/projects/expect/files/Expect/5.45.4/expect5.45.4.tar.gz/download", "sha256": "49a7da83b0bdd9f46d04a04deec19c7767bb9a323e40c4781f89caf760b92c34" }, "watch": {"kind": "index", "url": "https://sourceforge.net/projects/expect/rss?path=/Expect", "regex": "expect([0-9]+(?:\\.[0-9]+)+)\\.tar\\.gz"}, "deps": [ "tcl" ], "env_packages": [], "static": true, "nss": true, "check": "bin/expect -v | has 'expect version 5.45.4' && bin/expect -c 'spawn sh -c {printf \"Password: \"; read p; echo \"got $p\"}; expect \"Password: \"; send \"bvs-secret\\r\"; expect -re {got (\\S+)}; puts \"\\nanswer=$expect_out(1,string)\"' | has -x 'answer=bvs-secret' && bin/expect -c 'set timeout 1; spawn cat; expect \"never\" {exit 1} timeout {puts timeout-ok}' | has -x timeout-ok && echo 'expect: answered a password prompt through a pseudo-terminal; a timeout'" }