This is the mail archive of the
mailing list for the Cygwin project.
RE: symlinks to scripts not found in path
- From: "KARR, DAVID" <dk068x at att dot com>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Thu, 10 Apr 2014 16:37:08 +0000
- Subject: RE: symlinks to scripts not found in path
- Authentication-results: sourceware.org; auth=none
- References: <B8D164BED956C5439875951895CB4B2225BED7E6 at WABOTH9MSGUSR8C dot ITServices dot sbc dot com> <20140410155955 dot GE2437 at calimero dot vinschen dot de>
> -----Original Message-----
> Sent: Thursday, April 10, 2014 9:00 AM
> Subject: Re: symlinks to scripts not found in path
> On Apr 10 15:51, KARR, DAVID wrote:
> > On my old 32-bit Win7 box running Cygwin 1.7.26, I have an executable script that is
> intended to be symlinked to and executed as the symlink name. This works fine.
> > On my new 64-bit Win7 box running Cygwin 1.7.29, I created the symlink using "ln -s" as
> before. When I try to execute the script through the symlink, it fails to find it in the
> path. The script itself has the rx bits set. I can execute the script directly, although
> it doesn't do anything useful.
> > I didn't see anything obvious in the FAQ or obvious searches.
> Works fine for me:
> $ uname -rsm
> CYGWIN_NT-6.3 1.7.29(0.272/5/3) x86_64
> $ mkdir a b
> $ cd a
> cat > x.sh <<EOF
> echo Hello World
> $ chmod +x x.sh
> $ cd ../b
> $ ln -s ../a/x.sh hello
> $ ./hello
> Hello World
> Did you miss the #! by any chance?
Never mind, I had created the symbolic link with a relative path instead of absolute. Once I recreated it correctly, it worked fine.