X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Mon, 18 May 2009 20:44:47 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: Cygwin 1.7.0 2009-05-18 snapshot text mounts Message-ID: <20090519004447.GD8860@ednor.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20090519000410 DOT GA8860 AT ednor DOT casa DOT cgf DOT cx> <20090519003309 DOT GC8860 AT ednor DOT casa DOT cgf DOT cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090519003309.GC8860@ednor.casa.cgf.cx> User-Agent: Mutt/1.5.16 (2007-06-09) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Mon, May 18, 2009 at 08:33:09PM -0400, Christopher Faylor wrote: >On Mon, May 18, 2009 at 05:23:31PM -0700, Karl M wrote: >> >>> Date: Mon, 18 May 2009 20:04:10 -0400 >>> From: cgf >>> Subject: Re: Cygwin 1.7.0 2009-05-18 snapshot text mounts >>> >>> On Mon, May 18, 2009 at 04:21:49PM -0700, Karl M wrote: >>>> >>>>Hi All... >>>> >>>>I am using the Cygwin-1.7.0 2009-05-18 snapshot on a Vista Business SP1 box. >>>> >>>>The following is my fstab contents >>>> >>>>none / cygdrive text,noacl,posix=0 0 0 >>>> >>>>If I create a file with >>>> >>>>cat some-file> /c/Users/me/Desktop/file.txt >>>> >>>>I get Unix line endings. If I use Cywgin vim to create >>>> >>>>/c/Users/me/Desktop/zzz.txt >>>> >>>>I also get unix line endings. >>>> >>>>A cygcheck is attached. >>> >>> Please go back and read Corinna's release announcement and pay >>> particular attention to the discussion about the root directory. >>> >>> http://cygwin.com/ml/cygwin-announce/2009-05/msg00017.html >>> >>OK I reread...I'm not sure what you wanted me to see. I am creating a cygdrive entry in my fstab and it is being accepted, it just doesn't seem to honor the text attribute. > >I guess I was assuming that since you're essentially conflating / with >cygdrive you might have to either mount / as text and override it or use >the override option for the cygdrive entry too but, on reflection, that >shouldn't be the case. > >You're combining my two of my least favorite things: text mode and >overriding /cygdrive with / but I'll take a look nonetheless. I did find a bug in the recent handling of root but it doesn't appear to have any effect on this behavior. If I use echo to create files in /c with a /etc/fstab similar to the above, I get \r\n line endings. I'm sure Eric will correct me but I don't believe that cat can be used to convert from binary to text. vim also has a mode to create dos line endings. cgf -- 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/