This is the mail archive of the
insight@sourceware.org
mailing list for the Insight project.
Tcl/tk doesn't seem to append .exe to symlinks in Cygwin
- From: "Thrall, Bryan" <bryan dot thrall at flightsafety dot com>
- To: <insight at sourceware dot org>
- Date: Tue, 29 Aug 2006 19:09:50 -0500
- Subject: Tcl/tk doesn't seem to append .exe to symlinks in Cygwin
I understand this is the place to report problems with Cygwin's tcltk
package?
It looks like the wish.exe provided by tcltk doesn't properly handle
symbolic links to executables. A simple test case:
>>>>>>>>>>>
$ ls -l foo.exe wishtest
lrwxrwxrwx 1 thrall FSUsers 11 Aug 29 18:31 foo.exe -> /bin/ls.exe
-rwxr-xr-x 1 thrall FSUsers 148 Aug 29 18:33 wishtest
$ cat wishtest
#!/usr/bin/wish
set B [open "|foo 2>@stdout" r+]
set I [gets $B ]
frame .fr
label .fr.head -text "$I"
grid config .fr.head
pack .fr
close $B
<<<<<<<<<<<<<
When I run wishtest, I expect opening the pipe to find foo in the
current directory, but instead I get an error popup ("couldn't open
"foo": no such file or directory"). If you replace foo with foo.exe,
everything works fine.
From my cygcheck output (let me know if you need the whole thing):
tcltk 20060202-1
cygwin 1.5.18-1
Please CC me on replies; I'm not subscribed to the insight list.
Thanks,
--
Bryan Thrall
FlightSafety International
Bryan.Thrall@flightsafety.com
.