delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/11/23/00:11:16

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Message-Id: <5.1.0.14.2.20021122204531.02f1e130@pop3.cris.com>
X-Sender: rrschulz AT pop3 DOT cris DOT com
Date: Fri, 22 Nov 2002 21:11:54 -0800
To: cygwin AT cygwin DOT com
From: Randall R Schulz <rrschulz AT cris DOT com>
Subject: Re: dos2unix/d2u does nothing
In-Reply-To: <3DDF05D5.9040401@doe.carleton.ca>
Mime-Version: 1.0

Fred,

It works OK for me. You may be experiencing an interaction with a text mode 
mount (though from the looks of it, "conv.c" was ported for cygwin to open 
files in binary mode, so this shouldn't happen).

As to the mod time, perhaps you wrote the file and then converted it within 
the same minute, so "ls -l" doesn't show a change in the modification time 
(even though the difference is there at the finer time resolution that the 
OS and / or file system uses to record file modification times).

By the way, dos2unix and d2u are identical (byte-for-byte).

The other thing I can think of is that you're not running the dos2unix from 
the "cygutils" package, that the version you're running was not ported to 
Cygwin to be immune to the mount type and (conceivably) that it resets the 
file's modification time after reformatting it.

Randall Schulz
Mountain View, CA USA


At 20:36 2002-11-22, Shing-Fat Fred Ma wrote:

>Hello,
>
>I'm finding that dos2unix and d2u doesn't change a file in-place, even 
>with -U (the timestamp doesn't even change).  It works find for 
>stdin-to-stdout, though.   Just thought I'd share my feelings on that 
>(that is, I feel it doesn't work in-place, but thank goodness it works).
>
>Fred


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

- Raw text -


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