“ export”和“ setenv”有什么区别?


Answers:


19

除了:

setenv 是* csh shell系列中命令的名称

export 是“其他”壳系列(ash,bourne,再次bourne,zsh)中命令的名称

并且,好的语法略有不同。但是除此之外呢?没有。


1
我们是否可以考虑伯克利使用的混蛋c-shell语法“已弃用”?
msw


1
很高兴知道,在bourne(与bash不同)您不能做export VARIABLE=VALUE。相反,您需要做 VARIABLE=VALUE\n export VARIABLE
Mike Vella
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.