请告诉我我遗漏了一些非常明显的东西:
$ cat ~/bashplay/f
#!/bin/bash
read -p 'RDY> ' x
echo $x
$ ~/bashplay/f
RDY> direct execution
direct execution
$ ssh somehost ~/bashplay/f
indirect via ssh
indirect via ssh
使用ssh时,请注意缺少的“RDY>;”提示。在使用“readline”包时,我在python中看到了同样的情况。有人知道为什么吗?在
Tags:
{From>
使用
ssh
选项-t
强制伪tty分配:相关问题 更多 >
编程相关推荐