This is the mail archive of the
mailing list for the Cygwin project.
TcLsh cannot follow symlinks?
- From: "J. Stevens" <borbscht at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Sun, 15 Oct 2006 10:51:51 +0800
- Subject: TcLsh cannot follow symlinks?
I have a feeling that tclsh (TcL shell) in cygwin cannot follow
symlinks when using exec or other methods of calling programs.
I am using a tclsh script that calls zcat, which is really a symlink to gzip.
The script that follows gives "zcat: command not found":
exec zcat test.gz >test.txt #(It cannot follow the symlink?!)
But if I get rid of the symlink by changing the name of gzip.exe to
zcat.exe and copy it over zcat.exe in /bin, the script unzips test.gz
with no problems.
exec zcat test.gz >test.txt #works when I copy gzip.exe binary over
On the other hand, the perl script, for example, has no problem with
this, so I think it has something to do with TcL.
print `zcat test.gz >test.txt` #works OK
Has anyone encountered this problem?
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html