LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1229|回复: 2

怎么每打开一个终端都显示找不到export命令了?

[复制链接]
发表于 2003-9-20 10:51:09 | 显示全部楼层 |阅读模式
export: Command not found
# whereis export
export: /usr/share/man/man1/export.1.gz
# bash
bash-2.05b# whereis export
export: /usr/share/man/man1/export.1.gz
bash-2.05b# exit
exit
# echo $0
tcsh
#
发表于 2003-9-20 11:44:28 | 显示全部楼层
你用的是什么shell?如果是csh/tcsh的话,那么如果你在~/.cshrc里面用了export命令的话,就会有这样的 问题,export是在bash使用的,csh/tcsh中用setenv设置环境变量。
 楼主| 发表于 2003-9-20 11:52:52 | 显示全部楼层
谢谢版主, 我默认使用的SHELL 是  tcsh.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表