2024-07-31Linux中expect命令使用报错“invalid command name “Y“ while executing “Y“ invoked from within”1.执行expect命令的时候一直在报错:spawnshsetup.sh#invalidcommandname"Y" whileexecuting"Y" invokedfromwithin"expect"[Y]Yes,Iagree. [N]No,Idon'tagree."",如下图所示:其中的源码: /usr/bin/expect&l