【发布时间】:2017-12-31 09:15:27
【问题描述】:
我正在使用csh 终端。
.cshrc
setenv $files /home/ec2-user/files
.登录
if [ -f ~/.cshrc ]; then
. ~/.cshrc
fi
我正在尝试从 plink 回显 $files 值。 它显示错误 files: undefined variable
【问题讨论】:
-
改用导出文件=/home/ec2-user/files
-
不要使用
csh。试试zsh。阅读csh considered harmful -
@RamanSailopal,这是 csh,而不是 bash 或 posix。
export不存在。