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: mssing packages for cygwin



tar cvf test.tar /cygdrive/c/test is nice to work.


howver, can I mount /cygdrive/c as c:/ and run as
tar cvf test.tar c:/test ?

I have tar.exe djgpp and it works this way.


djgpp is for the DOS world. If that's what you really want, you're better
off using djgpp. But to your question, there is no need to use mount in the
way you describe. '/cygdrive/c' is a built-in mount to map 'c:' into POSIX
paths. If you're hung up on DOS paths, you can try'em but if you have
problems that you don't get using the POSIX paths, then you're better
off using 'cygpath' to convert DOS->POSIX. For example:


cygpath -u c:/test

As far as Cygwin (and the vast majority of the underlying Win32 functions
accepting paths), \ and / are synonymous.

thanks for your hep.


I don't undersand why "ls c:/test" works but not for
"tar cvf test.tar c:/test"

Tom

_________________________________________________________________
Try the new Live Search today! http://imagine-windowslive.com/minisites/searchlaunch/?locale=en-us&FORM=WLMTAG



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