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

RE: How to (dynamically) control Unix/Dos PATH-like variabletran slation


> Also, most Cygwin programs should be able to deal just fine 
> with Windows
> style paths.  So, just use those.

ksh93 has a variable type for automatically converting UNIX pathnames to
Windows pathnames.
This is an excerpt from the documentation for the typeset command of ksh:

--8<--
       -H     Hostname  mapping.  Each  name holds a native path-
              name. Assigning a UNIX format pathname  will  cause
              it  to  be converted to a pathname suitable for the
              current host. This has no effect  when  the  native
              system is UNIX.

--8<--

So I'd rather suggest patching bash to support this kind of variables than
anything else. Or to port ksh (which would also mean to port the AT&T AST
library first).
Or, just use Windows paths, as Chris suggested.

Karsten


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


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