* Tcl/tk doesn't seem to append .exe to symlinks in Cygwin
@ 2006-08-30 0:10 Thrall, Bryan
2006-10-02 15:35 ` Keith Seitz
0 siblings, 1 reply; 3+ messages in thread
From: Thrall, Bryan @ 2006-08-30 0:10 UTC (permalink / raw)
To: insight
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
.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Tcl/tk doesn't seem to append .exe to symlinks in Cygwin
2006-08-30 0:10 Tcl/tk doesn't seem to append .exe to symlinks in Cygwin Thrall, Bryan
@ 2006-10-02 15:35 ` Keith Seitz
0 siblings, 0 replies; 3+ messages in thread
From: Keith Seitz @ 2006-10-02 15:35 UTC (permalink / raw)
To: Thrall, Bryan; +Cc: insight
Thrall, Bryan wrote:
> I understand this is the place to report problems with Cygwin's tcltk
> package?
I guess so. We're the major consumer for it.
> It looks like the wish.exe provided by tcltk doesn't properly handle
> symbolic links to executables. A simple test case:
Tcl/tk in our repository are not cygwin applications. They were simply
modified (a long, long time ago) to build the windows version on cygwin
(using gcc). They understand nothing (from an API point of view) about
anything POSIX that cygwin introduces on top of windows. All the
filesystem commands still run through (non-POSIX) windows APIs. So
symbol links will not work (neither will paths that include "/cygdrive").
Out of curiosity, I wonder if this has been properly fixed upstream?
Have you looked at a recent release from www.tcl.tk? Have they found a
maintainer yet? If so, we could certainly do with dumping our own
version of tcl et al in favor of a release by the package's real
maintainers.
Keith
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: Tcl/tk doesn't seem to append .exe to symlinks in Cygwin
@ 2006-09-15 17:39 Thrall, Bryan
0 siblings, 0 replies; 3+ messages in thread
From: Thrall, Bryan @ 2006-09-15 17:39 UTC (permalink / raw)
To: insight; +Cc: cygwin
Thrall, Bryan wrote on Tuesday, August 29, 2006 7:10 PM:
> 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,
(cc'd to cygwin list in case the insight list *isn't* the right place)
Has anyone had a chance to look at this yet?
Unfortunately I don't really have the time to dig my way through the
insight code at the moment looking for a fix, so even some pointers that
would speed up my search would be helpful.
Thanks,
--
Bryan Thrall
FlightSafety International
Bryan.Thrall@flightsafety.com
.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-10-02 15:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-30 0:10 Tcl/tk doesn't seem to append .exe to symlinks in Cygwin Thrall, Bryan
2006-10-02 15:35 ` Keith Seitz
2006-09-15 17:39 Thrall, Bryan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).