Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 8e2c694aa5cdb100ce243fed12dc3ffd9cfd5e9c
Ticket: 602566ffffffffffffffffffffffffffffffffff
should use 'exists' instead of 'exist'
User & Date: davidw on 2002-08-30 18:46:18
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    This is a very low priority nitpick, but I noticed that
    info exist is used in place of info exists in several
    places.  'exists' is what's documented, and Tcl should
    use that, for consistency's sake.
    
    cd ~/download/tcl/
    find . -type f -print0 | xargs -0 -e grep -n -e 'info
    exist '
    ./library/http/http.tcl:174:
    if {[info exist state(-command)]} {
    ./library/http/http.tcl:559:    if {[info exist state]} {
    ./library/init.tcl:43:    if {[info exist
    env(TCLLIBPATH)]} {
    ./library/init.tcl:63:    if {[info exist ::tcl_pkgPath]} {
    ./library/outoftheway_init.tcl:42:    if {[info exist
    env(TCLLIBPATH)]} {
    ./library/outoftheway_init.tcl:60:if {[info exist
    tcl_pkgPath]} {
    ./tests/autoMkindex.test:107:if {[info exist
    auto_mkindex_parser::initCommands]} {
    ./tests/autoMkindex.test:112:    if {[info exist
    saveCommands]} {
    ./tests/autoMkindex.test:114:    } elseif {[info exist
    auto_mkindex_parser::initCommands]} {
    ./tests/autoMkindex.test:347:if {[info exist
    saveCommands]} {
    ./tests/binary.test:609:    list [binary scan abc a5
    arg1] [info exist arg1]
    ./tests/binary.test:648:    list [binary scan abc A5
    arg1] [info exist arg1]
    ./tests/env.test:201:    set result [info exist
    env(THIS_SHOULDNT_EXIST)]
    ./tests/env.test:218:    # The info exist command
    should be in synch with the env array.
    ./tests/http.test:23:    if {[info exist http2]} {
    ./tests/http.test:496:if {[info exist removeHttpd]} {
    ./tests/httpd:78:
    if {![info exist data(length_orig)]} {
    ./tests/httpd:106:
        if {![info exist data(mime,content-length)]} {
    ./tests/httpold.test:22:    if {[info exist httpold]} {
    ./tools/man2help2.tcl:871:    if {[info exist bitmap]} {
    
    This should be easy to fix with a script.
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "davidw"
  9. subsystem changed to: "69. Other"
  10. title changed to: "should use 'exists' instead of 'exist'"
  11. type changed to: "Bug"