This is the mail archive of the cygwin@sources.redhat.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: pwd & windows


cygpath -w `pwd`

or

cygpath -w $PWD

will give the Windows path of the current directory.  Change -w to -u
and give it a windows path, it will print the cygwin/unix style path.

Roger Talkov wrote:
> 
> If I use `pwd` in a shell script or makefile & pass that to a non-cygwin
> tool, like javac, it doesn't know what to do with /cygdrive/e/project .
> It would be extremely usefull to have a variant of pwd that would use
> the windows drive letter format (e:/project).
> 
> --
> Roger Talkov
> 
> rtalkov@AppWorx.com
> 425-644-2121 x 135
> 
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com

-- 
Bob McGowan
Staff Software Quality Engineer
VERITAS Software
rmcgowan@veritas.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


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