unset.n

来自「tcl是工具命令语言」· N 代码 · 共 48 行

N
48
字号
'\"'\" Copyright (c) 1993 The Regents of the University of California.'\" Copyright (c) 1994-1996 Sun Microsystems, Inc.'\" Copyright (c) 2000 Ajuba Solutions.'\"'\" See the file "license.terms" for information on usage and redistribution'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.'\" '\" RCS: @(#) $Id: unset.n,v 1.5 2001/03/06 14:45:03 dkf Exp $'\" .so man.macros.TH unset n 8.4 Tcl "Tcl Built-In Commands".BS'\" Note:  do not modify the .SH NAME line immediately below!.SH NAMEunset \- Delete variables.SH SYNOPSIS\fBunset \fR?\fI\-nocomplain\fR? ?\fI\-\-\fR? ?\fIname name name ...\fR?.BE.SH DESCRIPTION.PPThis command removes one or more variables.Each \fIname\fR is a variable name, specified in any of theways acceptable to the \fBset\fR command.If a \fIname\fR refers to an element of an array then thatelement is removed without affecting the rest of the array.If a \fIname\fR consists of an array name with no parenthesizedindex, then the entire array is deleted.The \fBunset\fR command returns an empty string as result..VS 8.4If \fI\-nocomplain\fR is specified as the first argument, any possibleerrors are suppressed.  The option may not be abbreviated, in order todisambiguate it from possible variable names.  The option \fI\-\-\fRindicates the end of the options, and should be used if you wish toremove a variable with the same name as any of the options..VE 8.4If an error occurs, any variables after the named one causing the error notdeleted.  An error can occur when the named variable doesn't exist, or thename refers to an array element but the variable is a scalar, or the namerefers to a variable in a non-existent namespace..SH "SEE ALSO"set(n), trace(n).SH KEYWORDSremove, variable

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?