Chinaunix
标题:
如何兼容在linux bash和cshell下运行的script
[打印本页]
作者:
ir888
时间:
2016-06-14 15:17
标题:
如何兼容在linux bash和cshell下运行的script
如何兼容在linux bash和cshell下运行的script
软件的环境变量设置在bash下,使用export 命令,比如:
export CDS_LIC_FILE = 5280@tqb
但是现在需要安装的库的环境变量设置在cshell下,比如:
setenv CDS_MMSIM_DIR /cad/cdsmmsim11_10_467
set path=($path $CDS_MMSIM_DIR/tools/bin)
我试着用如下方法:
alias CDS_MMSIM_DIR=’/cad/cdsmmsim11_10_467’
set path=($path $CDS_MMSIM_DIR/tools/bin)
但是没有用, 请问如何兼容在linux bash和cshell下运行的script?
非常感谢。
作者:
过过招
时间:
2016-06-14 15:37
获取$SHELL变量值,根据不同值设置不同ENV。
作者:
ir888
时间:
2016-06-14 17:14
回复
2#
过过招
我是菜鸟,可以给个具体点的举例吗?
非常感谢
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2