Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4af1e41d5216273b9b2036bc7c3fbcf76742b40e
Ticket: 1438236fffffffffffffffffffffffffffffffff
UNIX vs DOS Slashes
User & Date: speedboat on 2006-02-27 21:00:17
Changes

  1. icomment:
    Logged In: YES 
    user_id=243036
    
    I have a .bat script which determines it's own location, 
    for example C:\MyDir. The .bat script then sets the 
    TCLLIBPATH accordingly, for example: 
    
        set TCLLIBPATH=%MYDIR%/path/to/my/packages %
    MYDIR%/another/path
    
    Which results in:
    
       C:\MyDir/path/to/my/packages C:\MyDir/another/path
    
    which will not work.
    
    [file normalize] would be great, I didn't realize it would 
    work on a list of file paths, but it would still need to 
    be include in init.tcl probably as:
    
       set auto_path [file normalize $env(TCLLIBPATH)]
    
    I agree the .bat script is providing tcl an illegal list 
    of directory paths, but it's far easier to correct within 
    tcl than it is in the batch script. It's also a fairly 
    easy problem to generate when most of the other 
    environment variables (Ex. TCL_ROOT, TCL_LIBRARY) in 
    the .bat script require DOS-like slashes.
     
    
    
    
  2. login: "speedboat"
  3. mimetype: "text/plain"
  4. username: "speedboat"