Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <20001103193038.9425.qmail@web114.yahoomail.com> Date: Fri, 3 Nov 2000 11:30:38 -0800 (PST) From: Earnie Boyd Subject: RE: bison having ^M problems? To: mayers AT bmc DOT com, cygwin AT sources DOT redhat DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii --- Mike Ayers wrote: > > From: Earnie Boyd [mailto:earnie_boyd AT yahoo DOT com] > > > > --- Charles Wilson wrote: > > > > You have > > > > > TEMP = `/cygdrive/c/TEMP' > > > > and > > > > > HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2 > > > > > (default) = `/cygdrive' > > > > > cygdrive flags = 0x00000020 > > > > indicates that your /cygdrive pseudo mount is set to text > > mode while > > > > > C:\progfile\Cygwin\bin /usr/bin system binmode > > > > > C:\progfile\Cygwin\lib /usr/lib system binmode > > > > > C:\progfile\Cygwin / system binmode > > > > are set to binary mode. > > > > > > > > To resolve this, change the /cygdrive pseudo mount to > > binary mode. Hint: > > > > `mount --help'. > > > > > > This helps - a little. The text for 'mount --help' describes some > ways to modify cygdrive, but could have stood a little more text. I > had to guess, and wound up with: > > $mount -b -s --change-cygdrive-prefix /cygdrive > Hmm... The -s added a record to HKLM (the everyone option on setup) and you had yours located in HKCU (the just me option on setup). > ...which changed my cygdrive flags to 0x00000022. Does this mean > binary mode? Yes that means binary mode. However, if you look at the output of cygcheck -s -r -v carefully you may see two records. One in HKLM and one in HKCU with different flag values. HKCU takes precedence over HKLM. HKLM keys are used to allow for multi-user workstations where more than one user uses it. Any changes a particular user makes to the mount tables should go to the HKCU. This allow HKLM to be the default for a new user. Cheers, > 'mount --show-cygdrive-prefix' doesn't report flags (is > this a bug?). > I wouldn't call it a bug, but it is a misfeature. > > > > > > Good call. This should be a FAQ -- or perhaps setup should set > > > cygdrive's mount mode to binary when 'Binary' is selected for other > > > mounts? > > > > > I vote for FAQ, whether or not setup gets changed, and I'm not sure > that it should be changed. Consider someone who likes the /cygdrive > naming scheme, uses binary mode for almost everything, and only uses > mount to mount drives in text mode. If setup were to interpret the > mode flags, it would interpret incorrectly for such a user, who would > have to reset the mount structure after every upgrade. Also, you might > want to include the info on how to interpret the cygdrive flags in the > FAQ. > If setup had set /cygdrive to binary mode if UNIX files are chosen then you wouldn't have had this problem and this thread wouldn't exist. Besides setup doesn't change what is already existing. If it does it is a bug. As for an entry in the FAQ, IIRC there is already discussion of the /cygdrive pseudo mount. Cheers, ===== Earnie Boyd mailto:earnie_boyd AT yahoo DOT com --- --- --- Cygwin: POSIX on Windows --- --- Minimalist GNU for Windows --- __________________________________________________ Do You Yahoo!? From homework help to love advice, Yahoo! Experts has your answer. http://experts.yahoo.com/ -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com