我想让我的tcsh脚本启动一个编辑器(例如vi、emacs):vi my_file
这将使用my_file启动vi,但首先会显示警告"Vim: Warning: Output is not to to terminal“,并且我的按键不会出现在屏幕上在我杀死vi之后,我的终端窗口被弄乱了(没有换行符),需要“重置”。我尝试了"emacs -nw“、"xemacs -nw”和“pico”,得到了类似的结果。&quo
我在这里一定遗漏了一些简单的东西,因为我试图使用户的默认shell "lshell“用于有限的访问。我尝试使用命令chsh -s /usr/bin/lshell user设置shell,但是/etc/shell中没有列出带有“警告:"/usr/bin/lshell”的错误“。我已经三次检查了/etc/shell的配置文件,如下所示:/bin/bash/bin/tcsh/usr/bin/lshell编辑: od -c /etc/shell的输出
0000000 / b i n