Calling Cygwin from Dos - problem with sub program

nlian norliansyah@gmail.com
Wed Apr 23 05:26:00 GMT 2008


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/



More information about the Cygwin mailing list