This is the mail archive of the cygwin@sourceware.cygnus.com 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]

Auto Path Name Conversion Suggestion


One for the developers:

How about a cygwin32.dll utility / extension to bash to allow environment
variables to be marked in such a way as to identify them for auto-path
conversion as happens with the PATH environment variable.  This would assist
in the running of win32 applications from within the GNU environment.

Perhaps "typeset -c varname" or a gnu utility to inform the DLL which spawns
the processes to do the mapping for specified variables.

For example, say I have a win32 program that uses the environment variable
MROOT to determine where the root directory of some data is located.
Suppose also that I use GNU scripts to manipulate the data.  I set MROOT in
my GNU environment to say /my/data, however /my is a mount point and is
physically located on c:\data which has a directory under it called "my"
which contains my data, i.e.

	/my/data -> c:\Data\My

My scripts will work fine, because they look at MROOT and find the data.  My
win32 programs fail, because /my/data is not a valid win32 path.

Why don't I set MROOT=c:/Data/My which will (currently) work in both win32
and GNU.  Unfortunatly, my root directory also has some programs under it
which I need to put into the PATH variable, for example

	PATH=$PATH:$MROOT/bin

This fails in GNU because the drive letter uses a colon separator which is
therefore treated as a separate path entry.

Assume also that I have 100+ win32 programs (which I do) that use MROOT,
wrapping a script around each program to convert the environment is not an
option, something automatic is required.

Perhaps this facility (or a suitable alternative) already exists?

Austin David France
Mentor Systems plc
mailto:adf@mentor-systems.com


------------------------------------------------------------------------

The views and opinions expressed in this e-mail message are the sender's
and do not necessarily represent the views of Mentor Systems plc.

------------------------------------------------------------------------


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


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