.
D 2000-10-26T05:12:35
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s6357\sBug\nVersion:\s8.4a1\nSubmitDate:\s'2000-10-16'\nLastModified:\s'2000-10-25'\nSeverity:\sMED\nStatus:\sUnAssn\nSubmitter:\stechsupp\nOS:\sLinux\nFixedDate:\s'2000-10-25'\nClosedDate:\s'2000-10-25'\n\n\nName:\nJohn\sEllson\n\nCVS:\nOct\s12,\s2000.\s\s3am\s\s(patchlevel\s8.4a2)\n\nReproducibleScript:\n#!/usr/local/bin/tclsh8.4\n\n###\sthis\sbackslash\sgets\slost\nset\sscript\s{#!/bin/sh\n#\sthe\snext\sline\sis\sa\scomment\sin\stcl,\sbut\sexecutable\sby\ssh\s\sexec\swish\s"$0"\s${1+"$@"}\nputs\s"hello\sworld"\n}\nputs\s$script\n\n###\sthese\sbackslashes\sremain\sdoubled\nset\sscript\s{#!/bin/sh\n#\sthe\snext\sline\sis\sa\scomment\sin\stcl,\sbut\sexecutable\sby\ssh\s\\\\\nexec\swish\s"$0"\s${1+"$@"}\nputs\s"hello\sworld"\n}\nputs\s$script\n\nObservedBehavior:\nI'm\strying\sto\swrite\sa\sscript\sfrom\sa\stcl\sscript,\sincluding\sthe\nmagic\sinitial\sconstruct:\n#!/bin/sh\n#\sthe\snext\sline\sis\sa\scomment\sin\stcl,\sbut\sexecutable\sby\ssh\s\sexec\swish\s"$0"\s${1+"$@"}\n\ntcl\sis\ssubstituting\sthe\strailing\sbackslash\seven\sthough\sthe\sstring\sis\sin\sbraces.\n\nDesiredBehavior:\nno\sbackslash\ssubstitutions\sin\sbraced\sstrings.\n\n\n\n
J foundin obsolete:\s8.4a1
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title writing\sscripts\sfrom\sscripts\s-\sbackslash\ssubstitution\sin\s{..
J type RFE
K 219411ffffffffffffffffffffffffffffffffff
U nobody
Z 6c07bc8181bc779739419100968881e8