delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/04/10/22:12:11

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Andrey Tarasevich <andreytarasevich AT hotmail DOT com>
Subject: Restoring text mode on a mount. How?
Date: Fri, 11 Apr 2008 00:10:35 +0000 (UTC)
Lines: 38
Message-ID: <loom.20080411T000704-563@post.gmane.org>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Hello

I'm having a strange problem with my Cygwin installation and would appreciate 
any help. It was originally installed to use DOS text mode by default ('\r\n' 
line endings). A 'mount' command after the installation shows /cygwin/c as 
mounted in text mode

  c: on /cygwin/c type user (textmode)

I have a bunch of sh scripts on /cygwin/c with '\r\n' line endings that work 
perfectly fine. If I unmount /cygwin/c and re-mount it in binary mode, the 
scripts stop working due to '\r' getting in the way. So far, everything looks 
perfectly logical.

Then I unmount the binary /cygwin/c and remount it again in text mode. The 
report from 'mount' now looks the same way it looked after the installation

  c: on /cygwin/c type user (textmode)

However, the scripts still refuse to work for the very same reason - sh 
complains about those '\r's getting in the way. And that's the problem: 
regardless of what and how I mount/unmount, there seems to be absolutely no way 
to get back to the original functionality, i.e. make Cygwin to interpret text 
files from this textmode mount as text files.

The only way to solve the problem I found so far is to re-run the Cygwin setup 
again specifying DOS text mode by default. Magically, everything gets back to 
normal, even though there are no visible changes in the 'mount' report.

So the question that I'm trying to ask is why doesn't it work without re-
installation of Cygwin? Why does it interpret scripts from re-mounted textmode 
mount as binary files? Is there a way to get back to the original freshly-
installed Cygwin textmode behavior without actually re-installing it?

-- 
Thank you,
Andrey Tarasevich



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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019