Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-17
05:43 • Ticket [218659ffff] Meaningless error-message in genStubs.tcl status still C... artifact: 2c96b6f722 user: dgp
2000-10-26
08:26 • Closed ticket [218659ffff]. artifact: e297dff74e user: welch
01:03 • New ticket [218659ffff]. artifact: 82856583c3 user: nobody

Meaningless error-message in genStubs.tcl

Closed / Fixed218659ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:03:48
OriginalBugID: 1629 Bug
Version: 8.1b2
SubmitDate: '1999-03-25'
LastModified: '1999-04-05'
Severity: LOW
Status: Released
Submitter: pat
ChangedBy: redman
OS: Windows 95
Machine: X86
FixedDate: '1999-04-05'
ClosedDate: '2000-10-25'


Name:

Jan Nijtmans



CVS:

24 March 1998



ReproducibleScript:

    execute tools/genStubs.tcl without arguments,

    

    







ObservedBehavior:

    I get the following error-message:

    

    can't read "argv0": no such variable

        while executing

    "puts stderr "usage: $argv0 outDir declFile ?declFile...?""

        (procedure "genStubs::init" line 7)

        invoked from within

    "genStubs::init"

        (file "../tools/genStubs.tcl" line 888)

    







DesiredBehavior:

    print usage information

    







Patch:

*** tools/genStubs.tcl.origThu Mar 25 19:18:16 1999

--- tools/genStubs.tclThu Mar 25 20:06:18 1999

***************

*** 832,838 ****

  #None.

  

  proc genStubs::init {} {

!     global argv

      variable outDir

      variable interfaces

  

--- 832,838 ----

  #None.

  

  proc genStubs::init {} {

!     global argv argv0

      variable outDir

      variable interfaces

  









PatchFiles:

    genStubs.tcl

    









    The error and the fix are too trivial to give further
    comments on it. It's too small to post it to comp.lang.tcl,
    even too small to give it a bugId and put it into the bug
    database. I'll notice it when it is solved.
    
04/05/1999 18:08 - redman - Already applied.
welch Closed ticket [218659ffff]. [History diff]2000-10-26 08:26:11
dgp Ticket [218659ffff]: 3 changes [History diff]2001-04-17 05:43:13
Log in (anonymous is fine) to add a comment.