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": #!/bin/tclsh 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. #!/bin/tclsh exec zcat test.gz >test.txt #works when I copy gzip.exe binary over zcat.exe symlink On the other hand, the perl script, for example, has no problem with this, so I think it has something to do with TcL. #!/bin/perl print `zcat test.gz >test.txt` #works OK Has anyone encountered this problem? Thanks J. Stevens -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/