Re: What about a new `mib' command?

Juergen Schoenwaelder (schoenw@cs.utwente.nl)
Wed, 22 Jan 1997 22:08:08 +0100

Doug Hughes <Doug.Hughes@Eng.Auburn.EDU> said:

Doug> Should there then be a node info which works on just the node
Doug> (printing out the syntax, description, index, etc all in one
Doug> swell foop?)

I have learned that a command which returns multiple values is a baad
idea if it is fast to access the values directly. Scripts usually end
up to call lindex and friends to split the returned list again into
pieces, which leads to unreadable code. For example,

set tc [mib tc $oid]
if {[lindex $tc 2] != ""} {
puts $txt1
}
if {[lindex $tc 3] != ""} {
puts $txt2
}

do you know without looking at the man page, what the contents of
txt1 and txt2 should be?
Juergen

-- 
Juergen Schoenwaelder schoenw@cs.utwente.nl http://www.cs.utwente.nl/~schoenw
Computer Science Department, University of Twente,   (Fax: +31-53-489-3247)
P.O. Box 217, NL-7500 AE Enschede, The Netherlands.  (Tel. +31-53-489-3678)
--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.