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 中:
readonly constant=value
如何在鱼中做到这一点?
您不能在 fish 中定义只读变量(常量)。只有某些内置环境变量是只读的。
这些只读变量是:status、history、version、_、LINES和。只有 root 可以修改and 。COLUMNSPWDHOMEUSER
status
history
version
_
LINES
COLUMNS
PWD
HOME
USER