- 论坛徽章:
- 145
|
原始需求就是:
sh、bash、ksh下一般可以通过设置readonly使变量不能被unset。csh下使用set -r可 ...
青蛙咕啦咕啦 发表于 2011-07-12 16:10 ![]()
建一个precmd(档案)不就好了...
===========================
man alias
...
csh
alias assigns def to the alias name. The assigned def is a
list of words that may contain escaped history-substitution
metasyntax. name is not allowed to be alias or unalias. If
def is omitted, the alias name is displayed along with its
current definition. If both name and def are omitted, all
aliases are displayed.
Because of implementation restrictions, an alias definition
must have been entered on a previous command line before it
can be used.
unalias discards aliases that match (filename substitution)
pattern. All aliases may be removed by `unalias *'. |
|