delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <16830823.post@talk.nabble.com> |
Date: | Tue, 22 Apr 2008 21:33:00 -0700 (PDT) |
From: | nlian <norliansyah AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Calling Cygwin from Dos - problem with sub program |
In-Reply-To: | <480D6329.9020608@byu.net> |
MIME-Version: | 1.0 |
X-Nabble-From: | norliansyah AT gmail DOT com |
References: | <16760067 DOT post AT talk DOT nabble DOT com> <480D6329 DOT 9020608 AT byu DOT net> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 |
Hi Eric, You are genius! :) I change the path to use /cygdrive/d/ and it works! Cheers, Lian Eric Blake wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > According to nlian on 4/17/2008 9:58 PM: > | Hi, > | > | I have a bash script (e.g. test.sh), and I have the following command > | inside the script: > | > | #!/usr/bin/bash > | export PROG_LIB="D:\batch\prod\prog\lib" > > Non-portable use of back-slashes. But more importantly, a non-POSIX path > inside a bash script. > > | export PATH="$PROG_LIB:$PATH" > > Running this script with 'bash -vx', or adding 'cmd /c echo %PATH%', may > prove instructive of what you are setting PATH to. For starters, the > leading D followed by a path separator : means that you are searching the > relative directory D (and not anchoring a path in the d drive; for that > you need /cygdrive/d/). > > | However when I execute from dos, I got an error: > | functions.library: No such file or directory > > Probably because your PATH wasn't set correctly. > > - -- > Don't work too hard, make some time for fun as well! > > Eric Blake ebb9 AT byu DOT net > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (Cygwin) > Comment: Public key at home.comcast.net/~ericblake/eblake.gpg > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iEYEARECAAYFAkgNYykACgkQ84KuGfSFAYClIwCfbLEKsN0jHJvGRj36iYcTt62u > K80An0ZNRGTqkBz13Z3JY+MieCD/XyeT > =Db1W > -----END PGP SIGNATURE----- > > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Problem reports: http://cygwin.com/problems.html > Documentation: http://cygwin.com/docs.html > FAQ: http://cygwin.com/faq/ > > > -- View this message in context: http://www.nabble.com/Calling-Cygwin-from-Dos---problem-with-sub-program-tp16760067p16830823.html Sent from the Cygwin list mailing list archive at Nabble.com. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |