Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#728 List of commands in safe interpreter is wrong

obsolete: 8.3.3
closed-fixed
Jeffrey Hobbs
2
2001-06-27
2000-10-26
Anonymous
No

OriginalBugID: 1423 Bug
Version: 8.1b1
SubmitDate: '1999-03-03'
LastModified: '1999-09-13'
Severity: SER
Status: Released
Submitter: pat
ChangedBy: hobbs
OS: Windows 98
Machine: X86
FixedDate: '1999-09-13'
FixedInVersion: 8.3b1
ClosedDate: '2000-10-25'

Name:
Christopher Nelson

ReproducibleScript:
interp create -safe
interp0 eval {info commands}

ObservedBehavior:
The on-line help is missing a bunch of newer commands like binary,
package, and namespace.

DesiredBehavior:
The correct list of commands available in a safe interpreter is:

after append array binary break case catch clock close concat continue
encoding
eof error eval expr fblocked fcopy fileevent flush for foreach format
gets global if incr info interp join lappend lindex linsert list llength
lrange lreplace lsearch lsort namespace package pid proc puts read
regexp regsub rename return scan seek set split string subst switch tell
time trace unset update uplevel upvar variable vwait while

Also, vwait is listed as hidden, it's not.

Evaluate if commands should be safe, make them safe if needed, then update docs. 03/23/1999 18:51 - surles -

Discussion

  • Brent B. Welch
    Brent B. Welch
    2000-10-26

    • priority: 5 --> 2
    • status: open --> closed-fixed
     
  • Don Porter
    Don Porter
    2001-04-16

    • labels: 104246 --> 105658
    • milestone: 102421 --> obsolete: 8.3.3
    • status: closed-fixed --> open-fixed
     
  • Don Porter
    Don Porter
    2001-04-16

    Logged In: YES
    user_id=80530

    Re-opened. The list of commands documented as present in a
    safe interp is wrong again.

    Claimed present, but not: history
    Claimed hidden, but not: vwait
    Present, but not listed: time
    Hidden, but not listed: encoding

    Not in safe interp at all (doc this?): auto_execok,
    auto_import, auto_load, auto_load_index,
    auto_qualify, tclLog, unknown

     
  • Don Porter
    Don Porter
    2001-04-27

    Logged In: YES
    user_id=80530

    Here's a patch bringing the docs up to date, and adding
    some discussion of autoloading and package loading in
    safe interps.

    Assigning to maintainer for review.

    BTW, Why is safe(n) referred to as both "Safe Tcl" and
    "Safe Base"? Can't we pick just one name for this
    mechanism?

     
  • Don Porter
    Don Porter
    2001-04-27

    Doc updates

     
    Attachments
  • Don Porter
    Don Porter
    2001-04-27

    • labels: 105658 --> 20. [interp]
    • assigned_to: nobody --> hobbs
     
  • Jeffrey Hobbs
    Jeffrey Hobbs
    2001-06-27

    • status: open-fixed --> closed-fixed
     
  • Jeffrey Hobbs
    Jeffrey Hobbs
    2001-06-27

    Logged In: YES
    user_id=72656

    patched into 8.4a3cvs.