#91 expect return code of zero when spawn fails to run

open
nobody
None
5
2012-08-24
2012-08-24
Stormy
No

if /dev/pts has wrong permissions, expect fails (as expected), but return code is zero:
$ expect -c "spawn -noecho true"
The system has no more ptys. Ask your system administrator to create more.
while executing
"spawn -noecho true"
$ echo $?
0

Seems like return code should be non-zero

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks