Skip to content
Tcl Source Code Artifact [d315005e50]
Login

Artifact [d315005e50]

Artifact d315005e50589b7e6da858d306c6ff9c6485ce2a:

Ticket change [d315005e50] - New ticket [219032ffffffffff|219032ffff] <i>#!/usr/local/bin/tclsh not working on QNX</i>. by nobody on 2000-10-26 01:09:40.
D 2000-10-26T01:09:40
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s4053\sBug\nVersion:\s8.2.3\nSubmitDate:\s'2000-01-20'\nLastModified:\s'2000-01-25'\nSeverity:\sLOW\nStatus:\sReleased\nSubmitter:\stechsupp\nChangedBy:\shobbs\nOS:\sOther\nOSVersion:\sQNX\s4.25\nMachine:\sintel\spII\nFixedDate:\s'2000-01-25'\nFixedInVersion:\s8.3\nClosedDate:\s'2000-10-25'\n\n\nName:\n\nBruce\sEdge\n\n\nComments:\n\nThis\sfixes\sthe\sproblem.\sWould\sit\sbe\spossible\sto\sput\sit\sinto\sthe\snext\srelease?\n\n\nReproducibleScript:\n\n#!/usr/local/bin/tclsh\n\n\nObservedBehavior:\n\n#\s//8/usr/local/tcl/bin>\sls\s-l\sitclpp_parse\n\n-rwxrwxr-x\s\s1\sroot\s\s\s\s\s\sroot\s\s\s\s\s\s\s\s\s\s32545\sJan\s24\s05:45\sitclpp_parse\n\n\n#\s//8/usr/local/tcl/bin>\s./itclpp_parse\n\ncouldn't\sread\sfile\s"//8/usr/local/tcl/bin/itclpp_parse":\sno\ssuch\sfile\sor\n\ndirectory\n\n\n#\s//8/usr/local/tcl/bin>\shead\s-2\sitclpp_parse\n\n#!\s/usr/local/bin/tclsh\n\n\n#\s//8/usr/local/tcl/bin>\spwd\n\n/usr/local/tcl/bin\n\n\nIt\sapparently\shas\sproblems\swith\sQNX's\snode\sID\sprefix\sto\sit's\spath,\seg:\sthe\s//8\n\npreceeding\sthe\spath.\n\n\nDesiredBehavior:\n\ntclsh\sshould\sbe\sinvoked\sto\srun\sthe\sscript\scontaining\sthe\s#!/usr/local/bin/tclsh\sline\n\n\nPatch:\n\n//8/usr/local/src/tcl8.2.3>\sdiff\sgeneric/tclFileName.orig.c\s\sgeneric/tclFileNam\n\n755,756c755,761\n\n<\n\n<\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sif\s(*p\s==\s'/')\s{\n\n---\n\n>\s#ifdef\s__QNX__\n\n>\s\s\s\s\s//\sCheck\sfor\sQNX\s//<node\sid>\sprefix\n\n>\s\s\s\s\sif\s((p[0]\s==\s'/')\s&&\s(p[1]\s==\s'/')\s&&\satoi(&p[2])\s)\s{\n\n>\s\s\s\s\s\s\sp\s+=\s3;\n\n>\s\s\s\s\s}\n\n>\s#endif\n\n>\s\s\s\s\sif\s(*p\s==\s'/')\s{\n\n#\s//8/usr/local/src/tcl8.2.3>\n\n\nPatchFiles:\n\ngeneric/tclFileName.c\n\n\n\n\nSlightly\smodified\sto\sthe\sfollowing\sfor\s8.3.0:\n\n\n\npop\s[~/cvs/tcl8.3]\s5\s%\scvs\sdiff\s-c\sgeneric/tclFileName.c\n\nIndex:\sgeneric/tclFileName.c\n\n===================================================================\n\nRCS\sfile:\s/home/cvs/external/tcl/generic/tclFileName.c,v\n\nretrieving\srevision\s1.9\n\ndiff\s-c\s-r1.9\stclFileName.c\n\n***\stclFileName.c\s\s\s\s\s\s\s2000/01/24\s02:29:58\s\s\s\s\s1.9\n\n---\stclFileName.c\s\s\s\s\s\s\s2000/01/26\s01:01:42\n\n***************\n\n***\s762,767\s****\n\n---\s762,776\s----\n\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s*\sbeginning\sof\sthe\spath.\n\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s*/\n\n\s\s\n\n+\s#ifdef\s__QNX__\n\n+\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s/*\n\n+\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s*\sCheck\sfor\sQNX\s//<node\sid>\sprefix\n\n+\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s*/\n\n+\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sif\s(*p\s&&\s(strlen(p)\s>\s3)\s&&\n\n+\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s(p[0]\s==\s'/')\s&&\s(p[1]\s==\s'/')\s&&\satoi(&p[2]))\s{\n\n+\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sp\s+=\s3;\n\n+\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s}\n\n+\s#endif\n\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sif\s(*p\s==\s'/')\s{\n\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sTcl_DStringSetLength(resultPtr,\soldLength);\n\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sTcl_DStringAppend(resultPtr,\s"/",\s1);\n\n\s\n\n--\s01/25/2000\shobbs
J foundin final:\s8.2.3
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 37.\sFile\sSystem
J title #!/usr/local/bin/tclsh\snot\sworking\son\sQNX
J type Bug
K 219032ffffffffffffffffffffffffffffffffff
U nobody
Z a68d48e423739c9b801a5ad89dbb93cc