www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/03/17/06:56:23

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Wed, 17 Mar 2010 12:56:12 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: modification time of standard input is wrong
Message-ID: <20100317115612.GH6505@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <F724F0A6-4415-4BCA-BF3D-D3BBA25B32DA AT free DOT fr>
MIME-Version: 1.0
In-Reply-To: <F724F0A6-4415-4BCA-BF3D-D3BBA25B32DA@free.fr>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Mar 16 18:24, Denis Excoffier wrote:
> 
> Hello,
> 
> Under Cygwin 1.7.1-1, i have created the small program (see below),
> to print the modification time of the standard input. In the case where
> the stdin is a pipe (or the terminal), i expect the result to be more
> or less the current time. But the time printed in this case is
> invariably the modification time of /dev/null.
> 
> This has some impact in gzip and further, in tar.

What impact?  I don't think there is any standard which requires a non
filesystem based stream to have a current timestamp and a tool relying
on that might be broken.  All our streams which are not backed by a
filesystem w/ valid timestamps have an artificial timestamp of
2006-12-01 00:00:00.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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