Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: bbd5317be75aa9ea0788e4d1a78161ee2f22d749
Ticket: 3377401fffffffffffffffffffffffffffffffff
Tcltest -output ignores newlines
User & Date: ferrieux on 2011-07-27 00:50:56
Changes

  1. closedate changed to: "2011-07-26T17:50:56"
  2. closer changed to: "ferrieux"
  3. icomment:
    The half-rationale or more accurately the apologies, are provided in the tcltest.n manpage:
    So the space-collapsing is one of the many side-effects of that unfortunate,  now deprecated, but documented, single-block syntax. Hence closing as Won't Fix for lack of a Don't Do That.
    
           test name description optionList
                  This  form  of  test was provided to enable passing many options
                  spanning several lines to test as a single  argument  quoted  by
                  braces,  rather  than  needing  to  backslash quote the newlines
                  between arguments to test.  The optionList argument is  expected
                  to be a list with an even number of elements representing option
                  and value arguments to pass to test.  However, these values  are
                  not  passed  directly,  as  in  the  alternate  forms of switch.
                  Instead, this form makes an  unfortunate  attempt  to  overthrow
                  Tcl’s  substitution rules by performing substitutions on some of
                  the list elements as an attempt to implement a “do what I  mean”
                  interpretation  of  a  brace-enclosed  “block”.   The  result is
                  nearly impossible to document clearly, and for that reason  this
                  form  is  not  recommended.
    
    
    
  4. login: "ferrieux"
  5. mimetype: "text/plain"
  6. resolution changed to: "Wont Fix"
  7. status changed to: "Closed"
  8. username: "ferrieux"