X-Recipient: archive-cygwin@delorie.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@gmail.com>
To: cygwin@cygwin.com
Subject: Re: Calling Cygwin from Dos - problem with sub program
In-Reply-To: <480D6329.9020608@byu.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Nabble-From: norliansyah@gmail.com
References: <16760067.post@talk.nabble.com> <480D6329.9020608@byu.net>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@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


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@byu.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/

