Ex:
=>set a 12
12
=>
I want:
=> set -quiet a 12
=>
I have a procedure that I run and I don't want the clutter of all the
set command returns values.
Thanks,
Phil
Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.
C:\WINNT\system32>tclsh84
% rename set oset
% proc set {var {val {}}} {
if {$val == {}} {
return [uplevel 1 oset $var]
} else {
uplevel 1 oset $var $val
}
return
}
% set a 3
% set a
3
%
--
David Gravereaux <davy...@pobox.com>
Eh, why? It is just always the last command that returns output
to the screen in interactive mode. In a script, this is all
just moot anyway.
--
Jeff Hobbs The Tcl Guy
Senior Developer http://www.ActiveState.com/
Tcl Support and Productivity Solutions
See also
http://mini.net/tcl/689.html
--
Glenn Jackman