Overview
| Artifact ID: | 25b787944f990029a9ff32dc2e8b28a48e0ac2c6 |
|---|---|
| Ticket: | 914108ffffffffffffffffffffffffffffffffff
windows: exec doesn't find symlink without full path |
| User & Date: | p_samson on 2004-06-04 21:45:39 |
Changes
- icomment:
Logged In: YES user_id=994002 OK for auto_execok if it helps to find the path to the executable to gunzip. But I still find a little strange that %exec gzip works without any help. Both files are located at the same place: D:\cygwin\bin\gzip.exe D:\cygwin\bin\gunzip.exe The only difference is that the latter doesn't have a real executable struture, but [auto_execok gunzip] neither. Now, another point of frustration: % exec [auto_execok gunzip] x.gz gzip: x.gz already has .gz suffix -- unchanged gzip.exe is executed as expected but it checks if it has been so with the application name 'gun*' to know if decompression must be exerciced. If you look at tcl8.4.1\win\tclWinPipe.c: if ((*tclWinProcs->createProcessProc)(NULL, (TCHAR *) Tcl_DStringValue(&cmdLine), NULL, NULL, TRUE, (DWORD) createFlags, NULL, NULL, &startInfo, &procInfo) == 0) { The first argument is lpApplicationName. If it contains 'gunzip' then gzip.exe knows it must decompress. With NULL, the application name is taken from the second argument, which contains 'gzip', so compression is selected. Any chances to have the application name included in the process creation call? - login: "p_samson"
- mimetype: "text/plain"
- username: "p_samson"