unset
外觀
unset是一個內建的Unix shell命令,在Bourne shell家族(sh、ksh、bash等)和C shell家族(csh、tcsh等)都有實現。它可以取消設置一個shell變量,從內存和shell的導出環境中刪除它。它實現為一個殼層內建指令,因為它直接操縱shell的內部。
只讀shell變量不能被unset。如果試圖unset只讀變量,unset命令將打印一個錯誤消息,並返回一個非零的退出代碼。
unset
: unset values and attributes of variables and functions – 命令與工具(Commands & Utilities)參考,單一UNIX®規範第7期,由國際開放標準組織發布文件系統 | |
---|---|
程序 | |
用戶環境 | |
文本編輯 |
|
殼層內建 | |
網絡(英語:Network utility) | |
查找 | |
文檔 |
|
軟件開發 | |
雜項 | |