Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Injected-Via-Gmane: http://gmane.org/
To: cygwin@cygwin.com
From: Andrew DeFaria <ADeFaria@Salira.com>
Subject: Symlink to script fails
Date: Fri, 21 Feb 2003 10:41:45 -0800
Lines: 21
Message-ID: <3E5672E9.6000401@Salira.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: usenet@main.gmane.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01
X-Accept-Language: en-us, en, ru, zh

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/

