Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 328b8e1a930a3d399807d3a813ccf04cfb8fd43c
Ticket: 3570790fffffffffffffffffffffffffffffffff
[exec <<] truncates at NUL
User & Date: andygoth on 2012-09-22 21:01:27
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The "<<" [exec] redirection operator truncates its operand at the first NUL.  Similar does not happen when writing to an [open |] channel.
    
    % exec xxd << ab\0cd
    0000000: 6162                                     ab
    % exec xxd << ab\1cd
    0000000: 6162 0163 64                             ab.cd
    % set chan [open |xxd a+]; puts -nonewline $chan ab\0cd; close $chan write; read $chan
    0000000: 6162 0063 64                             ab.cd
    
  4. foundin changed to: "obsolete: 8.6b3"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "andygoth"
  10. subsystem changed to: "16. Commands A-H"
  11. title changed to: "[exec <<] truncates at NUL"
  12. type changed to: "Bug"