delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; q=dns; s= | |
default; b=oPLzu08MRBxqhKhBc9w2u75oMQL0+pbrz/NYwQkGCzGltnKL0Lxr8 | |
h6GwH/3E6uYR9MxzmRGZYRVyTLGSOYTM25ob4IBy1iPnog1tTdoHZ30KUYw60AfN | |
/wqHfjxFAylRRPX8WFB2sl0RYrI4/oYqc0v1ferI0zvWp/hEuNGxG0= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; s=default; | |
bh=iCsvA751bj72E9W7Ls0DtPdCNFs=; b=y5sYTo2bnS7AVKWSVFGV0DBGbZ+O | |
Vuf5Xj9vwTs/Tih4mmM3LvYIdr+uAGf7UJ1etg8+FOIQj106rI9nMr63h7SFvgZ/ | |
X0ZBCIHXtdcb+x2gBHATCOusuydBSZv5c0doR1xU9lkX3ERNXbSLu/ZJiD8u64zv | |
mLzTpOIFVBB/bxw= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 |
X-HELO: | calimero.vinschen.de |
Date: | Thu, 10 Apr 2014 17:59:55 +0200 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: symlinks to scripts not found in path |
Message-ID: | <20140410155955.GE2437@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <B8D164BED956C5439875951895CB4B2225BED7E6 AT WABOTH9MSGUSR8C DOT ITServices DOT sbc DOT com> |
MIME-Version: | 1.0 |
In-Reply-To: | <B8D164BED956C5439875951895CB4B2225BED7E6@WABOTH9MSGUSR8C.ITServices.sbc.com> |
User-Agent: | Mutt/1.5.21 (2010-09-15) |
--PaACFu8FWA0UZxdw Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Apr 10 15:51, KARR, DAVID wrote: > On my old 32-bit Win7 box running Cygwin 1.7.26, I have an executable scr= ipt that is intended to be symlinked to and executed as the symlink name. = This works fine. >=20 > On my new 64-bit Win7 box running Cygwin 1.7.29, I created the symlink us= ing "ln -s" as before. When I try to execute the script through the symlin= k, 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. >=20 > 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 --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --PaACFu8FWA0UZxdw Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJTRr/7AAoJEPU2Bp2uRE+gDSgQAIOI6QIiQ1LYBFoFDA/bzitR 4tCk+g+LxLH8Kn9aOlUAgRQii0bHyp914DUcuv9VdskuOdSq3nGyiqgTG8MFDh48 HbWgjiCXtPAyiq5/s8H+iHIWIGW8pUPyBv+7+KvdHOVURV03e8CtwjqbqCHSedur B6s9G7bN8AMqlfbBmzB3mjgLH8sdm3lrwF5yvZiDkZV7/vFoZDHtCPe69VpZaNgt EtVxPoujf6d+dPIYAQgnKHUEbuogcVFAEPMHUZqA9Vnboh84bqxr13TFB3i0mCkN hUsUibpY1hk4wsOHSF00o1roXgy/sE91Fnd0BlNHK8BUGLL7Acd+GZ6ACCT8yPHx xRQwW+dB0CQufp+g+K0GUvG3Tac5tFcpoF9hwHQy9bf+ziFXeVguuZbrBDWE4TPU PIH+bePYvtAZEpsheVRt31jNEC57KJAedDawY6rD8YO9HQnzNu/1xo/cU7EnuD4H 19H8Qn13oLnxudymEILYw1ehNn3TYsfe74I0iVEd53NU9txMktXxP4nUoG+SO3fM 2SSPjxhf5ws8aGwTPf7g8FxOXc5gmYMSDHfCiIn0X3ZzrwT9FBIXL78Bg4nuoiUy DZB2OPcBCntqUR1caTSuKJODucGYlmQXRl7Ie5o6QWMS1GwCXl/fLzf+LElQA50Y xKyaYdtthafQkgMG0AZf =MQj4 -----END PGP SIGNATURE----- --PaACFu8FWA0UZxdw--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |