我已经在我的本地pc上安装了ubuntu16.04,我正在努力使我的工作环境类似于我的工作配置方式。
为了达到这个目的,我想要使用相同的tcsh文件(是的,我们使用tcsh,不确定为什么.)
无论如何,当我试图打开一个tcsh终端(或源~/..tcshrc)时,我得到了一个错误:
set: Variable name must begin with a letter.
为了隔离原因,我发现接下来的几行就足够了。
#!/bin/tcsh
echo 0
set history = 2000 # this line is not the cause, verified by echoing
echo 1
set savehist = (2000 merge)
echo 2
产出:
0
1
set: Variable name must begin with a letter.
当我尝试将savehist = (2000 merge)作为一个常规shell命令运行时,终端不会显示任何错误。
当然,在我的工作中,tcshrc运转良好。在这两种情况下,我都安装了tcsh 6.18.01
欢迎任何帮助。
谢谢
发布于 2017-11-21 18:22:53
在the.tcshrc文件中只包含:
set history=2000
set savehist=(2000 merge)
注意:前面或=符号后面没有空格。
https://unix.stackexchange.com/questions/399610
复制相似问题