Re: changing default text type without reinstall?
Michael A Chase [EMAIL PROTECTED]: [...] I think you found most of what you needed, but did the articles you found explain enough? If not, what parts were insufficient or unclear? An example of changing the line ending convention for a part of the directory tree would have saved me from pondering the command line arguments and why they went wrong. Also, I'm still not sure how the line ending conversion works. I tried notepad.exe both on /home/sba/.bashrc and on some files in a freshly checked out CVS workspace, and files both places showed up correctly. I then tried notepad.exe on a file in the /etc directory, and this file still had only LF line separators, as seen from notepad. This means that it probably wasn't neccessary for me to check out the CVS workspace again, because all files in the directories under the new mount point were changed somehow? (since notepad.exe doesn't read any form of cygwin config) An explanation of the principles makes it easier to understand what to do, and what to expect. [snip!] The thing that puzzles me about that error message is that it didn't complain about c:cygwinhome instead since the bash command line reader uses '\' as an escape character. The easy way to avoid that problem is to use '/' instead of '\' even in Windows paths passed to cygwin programs. I tried mount -t c:/cygwin/home /home and that worked fine. There are two types of mount points, user and system. By default mount creates user (-u) mount points. These only apply to the current user and override the corresponding system mount points. Normally I only create system (-s) mount points. Ah, I should have used mount -s -t c:/cygwin/home /home I guess (I didn't read this far before running the command...:-) ). Thanx for your help! - Steinar -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: changing default text type without reinstall?
Michael A Chase [EMAIL PROTECTED]: Steinar Bang [EMAIL PROTECTED] wrote: Platform: CygWin 1.3.2, CygWin/XFree86 4.1.0, Win2k Is it possible to change from text type Unix to text type DOS, without reinstall? mount --help I'm guessing mount -t is what I should use? The explanation is text files get \r\n line endings. But I am unsure of how I should use this command. What exactly does it do? Does it insert a translation between the file system and the cygwin programs? Will just running the mount command make the change persistent? I didn't find anything under /etc or /usr/etc that looked like a mount table. I am also usure of what directories I should run it on. When I run the command with no arguments, I get this response ~$ mount C:\cygwin\bin on /usr/bin type system (binmode) C:\cygwin\lib on /usr/lib type system (binmode) C:\cygwin on / type system (binmode) c: on /cygdrive/c type user (binmode,noumount) d: on /cygdrive/d type user (binmode,noumount) ~$ I tried changing the mode of the /home directory ~$ mount -t c:\cygwin\home /home mount: /home: Invalid argument I tried changing the mode of the root directory ~$ mount -t c:\cygwin / mount: warning: user mount point of '/' masks system mount. mount: /: Invalid argument I tried seeing if I could change all directories. ~$ mount -t mount: too many arguments Thanx! - Steinar -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: changing default text type without reinstall?
Steinar Bang [EMAIL PROTECTED]: Michael A Chase [EMAIL PROTECTED]: Steinar Bang [EMAIL PROTECTED] wrote: Platform: CygWin 1.3.2, CygWin/XFree86 4.1.0, Win2k Is it possible to change from text type Unix to text type DOS, without reinstall? mount --help The results of mount --help, is here http://www.cygwin.com/cygwin-ug-net/using-utils.html#MOUNT I'm guessing mount -t is what I should use? The explanation is text files get \r\n line endings. But I am unsure of how I should use this command. What exactly does it do? Does it insert a translation between the file system and the cygwin programs? Will just running the mount command make the change persistent? I didn't find anything under /etc or /usr/etc that looked like a mount table. Here's some more information on the cygwin mount table http://www.cygwin.com/cygwin-ug-net/using.html#MOUNT-TABLE The mount table is in the registry, and running the mount command should put the changes there. The documentation says that the mount command can be used to add mount points, which makes it strange that the below command failed: I tried changing the mode of the /home directory ~$ mount -t c:\cygwin\home /home mount: /home: Invalid argument Why is /home an invalid argument? Have I misunderstodd what is meant by a posix path? Thanx! - Steinar -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: changing default text type without reinstall?
- Original Message - From: Steinar Bang [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 01, 2002 07:35 Subject: changing default text type without reinstall? Platform: CygWin 1.3.2, CygWin/XFree86 4.1.0, Win2k Is it possible to change from text type Unix to text type DOS, without reinstall? mount --help Will changing the text type give cygwin/xfree86 problems? I don't know, but probably not. Is it possible to make cygwin cvs do line ending conversion, without changing the default text type of the entire cygwin installation? I'm not familiar enough with CVS to comment on this. -- Mac :}) ** I normally forward private questions to the appropriate mail list. ** Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.htm Give a hobbit a fish and he eats fish for a day. Give a hobbit a ring and he eats fish for an age. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/