Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c598e1a89eaf320074213d6d2ddc2d6905c5eb40
Ticket: 817048ffffffffffffffffffffffffffffffffff
Backslashes inside curly braces
User & Date: dgp on 2003-10-05 01:54:53
Changes

  1. icomment:
    Logged In: YES 
    user_id=80530
    
    
    Just to clarify, there's no limit on your ability
    to construct a string in Tcl that ends in an
    odd number of backslashes.
    
    You just can't brace-quote such a string.
    (Because it would escape the closing } )
    You also can't ""-quote such a string for
    the same reason.  So in this corner case,
    you're stuck either using all \-quoting or,
    more likely, using substitution to generate
    the string you need.
    
    set bs \\
    set myString "foo bar$bs"
    
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"