🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #1155

shellutils-1.8: date -u doesn't work on old bsd systems

#1155
From: Mike Rendell
Date: Fri, 11 Dec 1992 11:21
14 lines
1026 bytes
Machine: vax
OS: 4.3bsd, ultrix 2.2

date -u (universal time) doesn't work on old BSD systems because localtime(3)
doesn't look at the TZ environment variable (TZ is set to UCT0 if the -u flag
is set).  This causes rcs [version 5.6] to fail its installation test.

Calling gmtime() instead of localtime() when the -u flag is set doesn't
completely fix the problem since the wrong time zone is printed.  I don't
see a clean way of fixing the problem, but perhaps it should be mentioned
in the README file.

--
Michael Rendell - Dept. of Comp. Sci., Memorial University of Newfoundland
Technical Details
Message-ID: <9212111839.AA19913@mercury.cs.mun.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!mercury.cs.mun.ca!michael

Show Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!mercury.cs.mun.ca!michael
From: michael@mercury.cs.mun.ca (Mike Rendell)
Subject: shellutils-1.8: date -u doesn't work on old bsd systems
Message-ID: <9212111839.AA19913@mercury.cs.mun.ca>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Fri, 11 Dec 1992 11:21:08 GMT
Approved: bug-gnu-utils@prep.ai.mit.edu
Lines: 15