Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: cc13c09e73453fa4d092f6feaf70f782e266e699
Ticket: 413696ffffffffffffffffffffffffffffffffff
OS/400 compatibility patch 1 of 3
User & Date: smatzek on 2001-04-04 13:33:37
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The POSIX shell environment in OS/400 required a 
    change in tcl/lang/library/init.tcl to 
    call /usr/bin/sh instead of /bin/sh to set the path.
    
    Without this fix all unrecognized commands are send to 
    the POSIX command line and some commands added by 
    extention are not recognized.
    
    The change is in the unknown proc and is in this 
    snippet of code.  The whole file has been attached.
    
    if {$tcl_platform(host_platform) == "unix"} {
    
        # Hack to get the PATH environmental var 
    on UNIX
        if {! [info exists env(PATH)]} {
                    if {$tcl_platform(os) == "OS/400"} {
                        set env(PATH) [exec /usr/bin/sh -
    c "echo \$PATH"]
                    } else {
                        set env(PATH) [exec /bin/sh -
    c "echo \$PATH"]
                    }
        }
    
    This patch has been tested on OS/400 v4r4, v4r5, and 
    an early version of v5r1.
    
  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: "smatzek"
  9. subsystem changed to: "52. Portability Support"
  10. title changed to: "OS/400 compatibility patch 1 of 3"
  11. type changed to: "Patch"