X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=0.4 required=5.0	tests=AWL,BAYES_20,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
From: Adam Dinwoodie <Adam.Dinwoodie@metaswitch.com>
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: RE: some kind of path problem when running bash script from windows shortcut
Date: Thu, 22 Mar 2012 17:35:33 +0000
Deferred-Delivery: Thu, 22 Mar 2012 17:35:00 +0000
Message-ID: <CE9C056E12502146A72FD81290379E9A2C52D87D@ENFIRHMBX1.datcon.co.uk>
References: <4F6B5FAD.5090303@molconn.com>
In-Reply-To: <4F6B5FAD.5090303@molconn.com>
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q2MHbtZT016139

LMH wrote:
> When I run it from the shortcut, I get "file not found" for rsync, date,
> unix2dos, and rm. I have temporarily changed the script to use the full
> path for these, /cygdrive/c/cygwin/bin/date.exe instead of date, but I
> have used this setup for a while and I'm not sure what has changed. Am
> I missing an environment variable or something?

Yes.  Make sure your Windows PATH environment variable includes
C:\cygwin\bin, or whatever the equivalent is for your install.

Also, per the FAQ, please remember to include the output from running
`cygcheck -s -v -r`.  That'll let us actually check your environment
variables, for example.

Adam

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


