symlinks to scripts not found in path
Corinna Vinschen
corinna-cygwin@cygwin.com
Thu Apr 10 15:59:00 GMT 2014
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
#!/bin/bash
echo Hello World
EOF
$ chmod +x x.sh
$ cd ../b
$ ln -s ../a/x.sh hello
$ ./hello
Hello World
Did you miss the #! by any chance?
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20140410/ebf64fe0/attachment.sig>
More information about the Cygwin
mailing list