Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我才知道.sh文件不使用set并且周围=不允许有空格,而.csh文件中允许这样做。
.sh
set
=
.csh
有什么地方可以告诉我我可以找到所有这些细微的差异吗?
文档?
Csh 和 sh 可能看起来很相似,但它们是不同的语言。就像 C++ 和 Java 有一些相似的结构,但它们是不同的语言。
众所周知,由于各种原因, Csh 编程被认为是有害的。
(sh 确实使用 set 但用于不同的目的)
你也可以看看这个来比较shell