<i>windows: exec doesn't find symlink without full path</i> status still Closed with 4 other changes
by
.
D 2004-06-04T21:45:39
J icomment Logged\sIn:\sYES\s\nuser_id=994002\n\nOK\sfor\sauto_execok\sif\sit\shelps\sto\sfind\sthe\spath\sto\sthe\nexecutable\sto\sgunzip.\sBut\sI\sstill\sfind\sa\slittle\sstrange\sthat\n%exec\sgzip\sworks\swithout\sany\shelp.\nBoth\sfiles\sare\slocated\sat\sthe\ssame\splace:\nD:\\cygwin\\bin\\gzip.exe\nD:\\cygwin\\bin\\gunzip.exe\nThe\sonly\sdifference\sis\sthat\sthe\slatter\sdoesn't\shave\sa\sreal\nexecutable\sstruture,\sbut\s[auto_execok\sgunzip]\sneither.\n\nNow,\sanother\spoint\sof\sfrustration:\n%\sexec\s[auto_execok\sgunzip]\sx.gz\ngzip:\sx.gz\salready\shas\s.gz\ssuffix\s--\sunchanged\n\ngzip.exe\sis\sexecuted\sas\sexpected\sbut\sit\schecks\sif\sit\nhas\sbeen\sso\swith\sthe\sapplication\sname\s'gun*'\sto\nknow\sif\sdecompression\smust\sbe\sexerciced.\n\nIf\syou\slook\sat\stcl8.4.1\\win\\tclWinPipe.c:\n\s\s\s\sif\s((*tclWinProcs->createProcessProc)(NULL,\s\n\s\s\s\s(TCHAR\s*)\sTcl_DStringValue(&cmdLine),\sNULL,\sNULL,\sTRUE,\s\n\s\s\s\s(DWORD)\screateFlags,\sNULL,\sNULL,\s&startInfo,\s&procInfo)\n==\s0)\s{\n\nThe\sfirst\sargument\sis\slpApplicationName.\sIf\sit\scontains\n'gunzip'\sthen\sgzip.exe\sknows\sit\smust\sdecompress.\nWith\sNULL,\sthe\sapplication\sname\sis\staken\sfrom\sthe\nsecond\sargument,\swhich\scontains\s'gzip',\sso\scompression\nis\sselected.\n\nAny\schances\sto\shave\sthe\sapplication\sname\sincluded\nin\sthe\sprocess\screation\scall?\n\n\n
J login p_samson
J mimetype text/plain
J username p_samson
K 914108ffffffffffffffffffffffffffffffffff
U p_samson
Z 1d532ba2692adefe7aec28a6717852a2