X-Recipient: archive-cygwin AT delorie DOT 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 To: "cygwin AT cygwin DOT 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: References: <4F6B5FAD DOT 5090303 AT molconn DOT 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 AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT 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