* Re: Epoch in 1.7.34
@ 2015-05-27 17:18 Andrew Clark
2015-05-27 21:16 ` Warren Young
0 siblings, 1 reply; 5+ messages in thread
From: Andrew Clark @ 2015-05-27 17:18 UTC (permalink / raw)
To: cygwin
On May 20, 2015, at 2:11 PM, Warren Young <wyml@etr-usa.com> wrote:
>
> So, what's the TZ setting on the 1.7.34 box?
$ echo $TZ
$
Let me try exporting TZ and running it again. BTW, in answer to your
previous question, strace returns
$ strace -fq date +%s
strace.exe: error creating process date, (error 2)
$ echo $?
1
whereas I get some output in the 2.0.2 environment.
After exporting TZ=America/New_York, the problem persists.
Sorry for the late reply; I sent my previous message without
subscribing to the mailing list, so I had no visibility into when you
replied. I have corrected the situation.
Andrew
--
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Epoch in 1.7.34
2015-05-27 17:18 Epoch in 1.7.34 Andrew Clark
@ 2015-05-27 21:16 ` Warren Young
0 siblings, 0 replies; 5+ messages in thread
From: Warren Young @ 2015-05-27 21:16 UTC (permalink / raw)
To: The Cygwin Mailing List
On May 27, 2015, at 10:25 AM, Andrew Clark <lark047@gmail.com> wrote:
>
> strace.exe: error creating process date, (error 2)
Well, there’s your problem. You will find that “which date” either doesn’t give “/usr/bin/date” as a result, or that the executable there is broken somehow.
In either case, you need to reinstall coreutils via setup.exe.
--
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Epoch in 1.7.34
2015-05-20 19:58 ` Warren Young
@ 2015-05-20 21:31 ` Warren Young
0 siblings, 0 replies; 5+ messages in thread
From: Warren Young @ 2015-05-20 21:31 UTC (permalink / raw)
To: The Cygwin Mailing List
On May 20, 2015, at 1:50 PM, Warren Young <wyml@etr-usa.com> wrote:
>
> More likely, the change is in newlib or the terminal I/O code.
Or, it could be in /bin/date itself, part of coreutils. I see this in the latest version’s NEWS file:
date could crash or go into an infinite loop when parsing a malformed TZ="".
[bug introduced with the --date='TZ="" ..' parsing feature in coreutils-5.3.0]
So, what’s the TZ setting on the 1.7.34 box?
--
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Epoch in 1.7.34
2015-05-20 19:10 Andrew Clark
@ 2015-05-20 19:58 ` Warren Young
2015-05-20 21:31 ` Warren Young
0 siblings, 1 reply; 5+ messages in thread
From: Warren Young @ 2015-05-20 19:58 UTC (permalink / raw)
To: The Cygwin Mailing List
On May 20, 2015, at 11:33 AM, Andrew Clark <lark047@gmail.com> wrote:
>
> I'm not sure if this a Cygwin question or a bash question, but I came
> here first.
Given that date is not a Bash builtin, I don’t know why that’s even on the table.
The Cygwin DLL *is* involved, but a problem in the key function (time(2)) would break an *awful* lot of software, so I can’t see it being the source of the change.
More likely, the change is in newlib or the terminal I/O code.
What do you get from “strace -fq date +%s”?
--
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Epoch in 1.7.34
@ 2015-05-20 19:10 Andrew Clark
2015-05-20 19:58 ` Warren Young
0 siblings, 1 reply; 5+ messages in thread
From: Andrew Clark @ 2015-05-20 19:10 UTC (permalink / raw)
To: cygwin
Hi,
I was wondering about this behavior of the date command in Cygwin
1.7.34. The bash version is 4.1.17:
$ date +%s
$
The behavior has been corrected in 2.0.2 (bash version 4.3.33):
$ date +%s
1432142822
$
I'm not sure if this a Cygwin question or a bash question, but I came
here first.
Thanks,
Andrew
--
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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-05-27 19:31 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-27 17:18 Epoch in 1.7.34 Andrew Clark
2015-05-27 21:16 ` Warren Young
-- strict thread matches above, loose matches on Subject: below --
2015-05-20 19:10 Andrew Clark
2015-05-20 19:58 ` Warren Young
2015-05-20 21:31 ` Warren Young
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).