www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/04/10/12:37:51

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:from:to:subject:date:message-id:references
:in-reply-to:content-type:content-transfer-encoding
:mime-version; q=dns; s=default; b=svHy4afnLU+w1G40jqRdRElGPr+zT
7Q6QtCiAJOJUMjeOpzbFG31CCuJr7fK2pHNhNHypQXHWdXoH9hzujrrAYazur5mZ
DU7VxaYbHKFTfr3vgjUuXWCeqprerWy/SbmQ8lyV5d/RarkEMQRIV1EyuWSc93hx
HDyYWxwE72Y9SM=
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:from:to:subject:date:message-id:references
:in-reply-to:content-type:content-transfer-encoding
:mime-version; s=default; bh=eiUd1ogfXWi7heEHYIlwjEe0/uU=; b=iEA
KV1hC/iKp1W2OTxMXq8B7JxnjQ1p58fhBqZHPIszm8HqdXV6Y/VNmmXAX4rB4W6i
8nC8V5pmANdvER4vWM/jGXUAudA6FhWmWW4OfS3hcEDUELJwiiBJ4BWBum1be/Yw
V6PRbxtfF4JNSBKfqS6daBD1dAut48MZnhLfywhI=
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=1.0 required=5.0 tests=AWL,BAYES_00,MIME_BASE64_BLANKS,RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-HELO: nbfkord-smmo07.seg.att.com
X-MXL-Hash: 5346c8cd702ab226-538454bafe698ba8ffb630e39d2f421f89f29f05
From: "KARR, DAVID" <dk068x AT att DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: RE: symlinks to scripts not found in path
Date: Thu, 10 Apr 2014 16:37:08 +0000
Message-ID: <B8D164BED956C5439875951895CB4B2225BF1921@WABOTH9MSGUSR8C.ITServices.sbc.com>
References: <B8D164BED956C5439875951895CB4B2225BED7E6 AT WABOTH9MSGUSR8C DOT ITServices DOT sbc DOT com> <20140410155955 DOT GE2437 AT calimero DOT vinschen DOT de>
In-Reply-To: <20140410155955.GE2437@calimero.vinschen.de>
MIME-Version: 1.0
X-RSA-Inspected: yes
X-RSA-Classifications: public
X-AnalysisOut: [v=2.0 cv=cdNlWA/M c=1 sm=1 a=srMsL6ituuWTYeky9Bs9mA==:17 a]
X-AnalysisOut: [=ESSTELazgU8A:10 a=ofMgfj31e3cA:10 a=YnP4VLJI-BoA:10 a=BLc]
X-AnalysisOut: [eEmwcHowA:10 a=IkcTkHD0fZMA:10 a=zQP7CpKOAAAA:8 a=XIqpo32R]
X-AnalysisOut: [AAAA:8 a=eyJCiVrMI6z6tRxyn_gA:9 a=QEXdDO2ut3YA:10]
X-Spam: [F=0.2000000000; CM=0.500; S=0.200(2010122901)]
X-MAIL-FROM: <dk068x AT att DOT com>
X-IsSubscribed: yes
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id s3AGbj5X011391

> -----Original Message-----
> Vinschen
> 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
>   #!/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?

Never mind, I had created the symbolic link with a relative path instead of absolute.  Once I recreated it correctly, it worked fine.

Thanks.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019