.
D 2011-11-03T20:16:54
J assignee dgp
J cmimetype text/plain
J comment Running\sTcl\swithout\scommand\sline\sarguments\sbut\swith\sinput\snot\scoming\sfrom\sa\stty\scauses\s.tclshrc\s(or\sequivalent)\sto\sbe\sloaded.\s\sIt\sshouldn't.\s\s(We\sdon't\swant\speoples'\stclshrc\sfiles\sto\scause\snoninteractive\sTcl\sprograms\sto\schange\stheir\sbehavior.)\n\nHow\sto\sreproduce:\nPut\ssomething\sin\syour\s.tclshrc\slike...\s\sputs\s".tclshrc\sloaded"\n\necho\sexit\s|\stclsh8.5\n\nIt\swill\semit\s".tclshrc\sloaded".\s\sIt\sshouldn't.\n\nNote\sthat\sin\sthe\sabove\sexample,\sor\sany\sother\swhere\sstdin\sisn't\sa\stty,\stcl_interactive\sis\scorrectly\sset\sto\s0.\n\nHere\sis\sa\scontext\sdiff\sfor\sa\spatch\sthat\sfixes\sthe\sbug:\n\n***\stclMain.c.origThu\sNov\s\s3\s15:02:54\s2011\n---\stclMain.cThu\sNov\s\s3\s15:04:12\s2011\n***************\n***\s460,472\s****\n\s\s\s\s\s\s}\n\s\s\n\s\s\s\s\s\s/*\n!\s\s\s\s\s\s*\sWe're\srunning\sinteractively.\sSource\sa\suser-specific\sstartup\sfile\sif\sthe\n!\s\s\s\s\s\s*\sapplication\sspecified\sone\sand\sif\sthe\sfile\sexists.\n\s\s\s\s\s\s\s*/\n\s\s\n!\s\s\s\s\sTcl_SourceRCFile(interp);\n!\s\s\s\s\sif\s(Tcl_LimitExceeded(interp))\s{\n!\sgoto\sdone;\n\s\s\s\s\s\s}\n\s\s\n\s\s\s\s\s\s/*\n---\s460,475\s----\n\s\s\s\s\s\s}\n\s\s\n\s\s\s\s\s\s/*\n!\s\s\s\s\s\s*\sNo\sscript\sfile\swas\sspecified\son\sthe\scommand\sline.\n!\s\s\s\s\s\s*\sIf\swe're\srunning\sinteractively,\ssource\sa\suser-specific\s\n!\s\s\s\s\s\s*\sstartup\sfile\sif\sthe\sapplication\sspecified\sone\sand\sif\sthe\sfile\sexists.\n\s\s\s\s\s\s\s*/\n\s\s\n!\s\s\s\s\sif\s(tty)\s{\n!\sTcl_SourceRCFile(interp);\n!\sif\s(Tcl_LimitExceeded(interp))\s{\n!\s\s\s\s\sgoto\sdone;\n!\s}\n\s\s\s\s\s\s}\n\s\s\n\s\s\s\s\s\s/*\n\n\n\n\n\n\n
J foundin obsolete:\s8.5.10
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter karll
J subsystem 38.\sInit\s-\sLibrary\s-\sAutoload
J title Some\snoninteractive\sinvocations\sof\stclsh\sstill\srun\s.tclshrc
J type RFE
K 3432962fffffffffffffffffffffffffffffffff
U karll
Z cfd34f75a72ef8ba3984df4fb2848a28