Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Oct 1996 14:30:01 -0700 (PDT)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        freebsd-bugs
Subject:   Re: bin/1865: Problems with touch command
Message-ID:  <199610222130.OAA05470@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/1865; it has been noted by GNATS.

From: J Wunsch <j@uriah.heep.sax.de>
To: george@grande.fapesp.br
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: bin/1865: Problems with touch command
Date: Tue, 22 Oct 1996 23:01:48 +0200 (MET DST)

 As george@grande.fapesp.br wrote:
 
 > touch -t 9610200000 arq
 > returns
 > touch: out of range or illegal time specification: [[CC]YY]MMDDhhmm[.SS]
 
 j@uriah 373% touch -t 9610200000 arq
 j@uriah 374% ls -l arq
 -rw-r--r--  1 j  bin  0 Oct 20 00:00 arq
 
 > Release:        FreeBSD 2.1-STABLE i386
 
 Hmm, mine is a 2.2-current.  However, you must be using a fairly old
 2.1-stable system:
 
 
 RCS file: /home/cvs/src/usr.bin/touch/touch.c,v
 Working file: /usr/src/usr.bin/touch/touch.c
 head: 1.4
 branch:
 locks: strict
 access list:
 symbolic names:
         RELENG_2_1_5_RELEASE: 1.2.4.1
         RELENG_2_1_0_RELEASE: 1.2.4.1
                               (1)
 [...]
 revision 1.3
 date: 1995/07/08 16:47:47;  author: joerg;  state: Exp;  lines: +1 -1
 PR # bin/274
 > The command:
 >
 > touch -t 199504011200 testfile
 >
 > gives the error message:
 >
 > touch: out of range or illegal time specification: [[CC]YY]MMDDhhmm[.SS]
 
 Submitted by:   mpp@legarto.minn.net (Mike Pritchard)
 ----------------------------
 [...]
 revision 1.2.4.1
 date: 1995/08/26 10:16:22;  author: davidg;  state: Exp;  lines: +1 -1
 Brought in change from rev 1.3: fix off by ten error in year calculation.
 
 (1) means that the fix is already present in 2.1R, as well as in
 2.1.5R.
 
 Please upgrade your system then.
 
 Btw2, i think you must have been using
 
 	touch -t 199610200000 arq
 
 since the fix was for a time specification with the century.
 
 
 Can i close this?
 
 -- 
 cheers, J"org
 
 joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
 Never trust an operating system you don't have sources for. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610222130.OAA05470>