This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Calling Cygwin from Dos - problem with sub program


-----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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]