This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Symlink to script fails


I have need to use Rational's "CQPerl" which appears to be a derivative of Active State Perl that allows me to use Perl to access Clearquest. I have a perl script that does what I want however if I symlink that script the symlinked invocation does not work! I've drastically reduced the Perl script to simply demonstrate the problem:

$ cat foo
#!c:/Progra~1/Rational/ClearQuest/CQPerl
print "Hello world\n";
$ foo
Hello world
$ ls -l bar
lrwxrwxrwx    1 adefaria Domain U       86 Feb 21 10:38 bar -> foo*
$ bar
Can't open perl script "./bar": No such file or directory

Now if I change the shebang line to #!/bin/perl then everything works but as I said I need to use CQPerl.

Ideas?



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]