Skip to content
Tcl Source Code History Of Ticket 219057
Login

History Of Ticket 219057

Artifacts Associated With Ticket 219057

  1. Ticket change [e69d007028] (rid 104321) by nobody on 2000-10-26 01:09:59:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 4225 RFE
      Version: 8.3
      SubmitDate: '2000-02-22'
      LastModified: '2000-05-27'
      Severity: SER
      Status: Released
      Submitter: welch
      ChangedBy: hobbs
      OS: All
      FixedDate: '2000-05-27'
      FixedInVersion: 8.4a1
      ClosedDate: '2000-10-25'
      
      
      Anyone that overrides the "source" command has a problem with
      
      info script - it won't return the correct value.  By allowing an
      
      optional parameter to info script that sets the current script value,
      
      then a proper hooking of source can be achieved.  Otherwise you have
      
      to redefine the whole info command, which can slow down your whole
      
      application miserably.
      
      
      
      Patch:
      
      
      
      Index: generic/tclCmdIL.c
      
      ===================================================================
      
      RCS file: /home/cvs/external/tcl/generic/tclCmdIL.c,v
      
      retrieving revision 1.26
      
      diff -r1.26 tclCmdIL.c
      
      1581c1581,1583
      
      <  *          info script
      
      ---
      
      >  *          info script ?newName?
      
      >  *
      
      >  *If newName is specified, it will set that as the internal name.
      
      1588c1590,1591
      
      <  *an error, the result is an error message.
      
      ---
      
      >  *an error, the result is an error message.  It may change the
      
      >  *internal script filename.
      
      1601c1604
      
      <     if (objc != 2) {
      
      ---
      
      >     if ((objc != 2) && (objc != 3)) {
      
      1605a1609,1618
      
      >     if (objc == 3) {
      
      > int length;
      
      > char *filename = Tcl_GetStringFromObj(objv[2], &length);
      
      > 
      
      > if (iPtr->scriptFile != NULL) {
      
      >     ckfree(iPtr->scriptFile);
      
      > }
      
      > iPtr->scriptFile = ckalloc((unsigned) (length + 1));
      
      > strcpy(iPtr->scriptFile, filename);
      
      >     }
      
      Index: generic/tclIOUtil.c
      
      ===================================================================
      
      RCS file: /home/cvs/external/tcl/generic/tclIOUtil.c,v
      
      retrieving revision 1.10
      
      diff -r1.10 tclIOUtil.c
      
      327c327,328
      
      <     iPtr->scriptFile = fileName;
      
      ---
      
      >     iPtr->scriptFile = ckalloc((unsigned) (strlen(fileName) + 1));
      
      >     strcpy(iPtr->scriptFile, fileName);
      
      329a331
      
      >     ckfree(iPtr->scriptFile);
      
      
      
      Patched as above for 8.4a1. 
      -- 05/27/2000 hobbs
      
    4. foundin initialized to: "obsolete: 8.3"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "81. Bundled Packages"
    10. title initialized to:
      info script should take an option parameter so you can set t
      
    11. type initialized to: "RFE"
  2. Ticket change [1f0adf8d76] (rid 91078) by welch on 2000-10-26 08:34:06:

    1. closedate changed to: "2000-10-26T01:34:06"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [ecc2db9f06] (rid 103763) by dgp on 2001-04-05 07:57:11:

    1. foundin changed to: "None"
    2. status changed to: "Open"
    3. subsystem changed to: "None"
  4. Ticket change [b3e906ee59] (rid 124931) by dgp on 2001-04-05 07:57:43:

    1. closedate changed to: "2001-04-05T00:57:43"
    2. closer changed to: "dgp"
    3. status changed to: "Closed"
    4. subsystem changed to: "17. Commands I-L"