Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 15c28d0612b5c8eb49b04274f0a36224edba826f
Ticket: c8d1585aa9ad549169b42c0fe36e5fbb7746db31
strange variable of variable evaluation in filesystem path (Windows only)
User & Date: anonymous on 2013-07-26 13:30:03
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    Hi,
    I have such file/directory structure:
    -test (directory)
    -a.tcl (file)
    -b.tcl (file)
    
    Files content:
    
    #b.tcl
    puts "Hello!"
    #
    
    #a.tcl
    set a  test
    set b {$a}
    source "$b/../b.tcl" ;#this one works on Windows, but doesn't on Linux
    source "$b/b.tcl" ;#this one doesn't work on both platforms
    #
    
    I run a.tcl and get behaviour as described above. This is not connected with 'source' command only, I noticed that at least 'file normalize' behaves similarly, I mean evaluating $b into pure value of $a.
    
    Best regards,
    Bogdan
    
  5. foundin changed to: "8.5.14"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "a604f9ebda557aaac15c81dee385b0d7b1a51416"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "anonymous"
  14. subsystem changed to: "07. Variables"
  15. title changed to:
    strange variable of variable evaluation in filesystem path (Windows only)
    
  16. type changed to: "Bug"