Re: date overflow in year 2038

2009-02-13 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to David M. Dowdle on 2/13/2009 8:45 PM: > clouded:~> date -d "Fri Jan 19 03:14:08 UTC 2038" +%s > date: invalid date `Fri Jan 19 03:14:08 UTC 2038' > clouded:~> > > 03:14:07 is apparently when 32bit time_t hits MAXINT Yep, and that's why m

date overflow in year 2038

2009-02-13 Thread David M. Dowdle
clouded:~> date -d "Fri Jan 19 03:14:06 UTC 2038" +%s 2147483646 clouded:~> date -d "Fri Jan 19 03:14:07 UTC 2038" +%s 2147483647 clouded:~> date -d "Fri Jan 19 03:14:08 UTC 2038" +%s date: invalid date `Fri Jan 19 03:14:08 UTC 2038' clouded:~> clouded:~> date --version date (GNU coreutils) 6.

Re: seq -w floating point incorrect formating

2009-02-13 Thread Philip Rowlands
On Sat, 14 Feb 2009, Samuel Hap?k wrote: I think that seq is not behaving correctly on this input: seq -w 9 0.5 10 I obtain the output: 9.0 9.5 10.0 While I think I should obtain: 09.0 09.5 10.0 From the info documentation: `-w' `--equal-width' Print all numbers with the same width,

Re: seq -w floating point incorrect formating

2009-02-13 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Samuel Hapák on 2/13/2009 5:26 PM: Hello Samuel, > seq -w 9 0.5 10 > > While I think I should obtain: > 09.0 > 09.5 > 10.0 Thanks for the report. This indeed looks odd, and I've confirmed it in the latest git. But at least you can wo

Re: wc enhancement request: total option

2009-02-13 Thread Philip Rowlands
On Fri, 13 Feb 2009, Kevin Ivory wrote: Hi coreutils team, wc gives a grand total when analyzing several files. It would be helpful to have a command line option that returns only the total. It should be able to combine with -c/-l/-w to return only the total characters / total lines / total wor

seq -w floating point incorrect formating

2009-02-13 Thread Samuel Hapák
Hello, I think that seq is not behaving correctly on this input: seq -w 9 0.5 10 I obtain the output: 9.0 9.5 10.0 While I think I should obtain: 09.0 09.5 10.0 Version of coreutils on my system is 6.10, I know it is not the most recent version, but I've no succes on compiling the most recent ve

wc enhancement request: total option

2009-02-13 Thread Kevin Ivory
Hi coreutils team, wc gives a grand total when analyzing several files. It would be helpful to have a command line option that returns only the total. It should be able to combine with -c/-l/-w to return only the total characters / total lines / total words. Thanks for the useful versions of core

Re: Latest Coreutils

2009-02-13 Thread Jim Meyering
Elbert_Gmail wrote: > I attached the log file. Thanks. Next time, please omit the lines that merely show how gcc is invoked. ... > mv -f .deps/test-xvasprintf.Tpo .deps/test-xvasprintf.Po > gcc -std=gnu99 -D__EMX__ -DEMX -DOS2 -D__ST_MT_ERRNO__ -O3 -march=pentium > -mtune=pentium4 -Zexe -Zom

Re: [PATCH] maint: mention how to run a single test in HACKING docs

2009-02-13 Thread Ralf Wildenhues
Hi Jim, * Jim Meyering wrote on Fri, Feb 13, 2009 at 12:33:34PM CET: > Ralf Wildenhues wrote: > > > > FWIW, 'make -C' is GNU make-specific, the portable equivalent would be [...] > Thanks for the advice, but I'm beginning to think that it's fine to > give GNU-make-specific hints to coreutils buil

[PATCH] du,chgrp,chmod,chown: use FTS_DEFER_STAT

2009-02-13 Thread Jim Meyering
Not terribly important, but I was surprised to see that I had added this to fts (for find) but had never added it to the fts clients in coreutils. >From 982504452d60a87632a5a2f11d1be645e06d8346 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 11 Feb 2009 12:26:14 +0100 Subject: [PATCH] du,c

Re: [PATCH] maint: mention how to run a single test in HACKING docs

2009-02-13 Thread Jim Meyering
Pádraig Brady wrote: > Ralf Wildenhues wrote: >>> Pádraig Brady draigBrady.com> wrote: + env DEBUG=yes VERBOSE=yes make check -C tests TESTS=mv/hard-link-1 >> log >> 2>&1 >> >> FWIW, 'make -C' is GNU make-specific, the portable equivalent would be >> cd tests && env DEBUG=yes VERBO

Re: [PATCH] maint: mention how to run a single test in HACKING docs

2009-02-13 Thread Jim Meyering
Ralf Wildenhues wrote: >> Pádraig Brady draigBrady.com> wrote: >> > + env DEBUG=yes VERBOSE=yes make check -C tests TESTS=mv/hard-link-1 >> >> > log > 2>&1 > > FWIW, 'make -C' is GNU make-specific, the portable equivalent would be > cd tests && env DEBUG=yes VERBOSE=yes make check TESTS=... >

Re: [PATCH] maint: mention how to run a single test in HACKING docs

2009-02-13 Thread Pádraig Brady
Ralf Wildenhues wrote: >> Pádraig Brady draigBrady.com> wrote: >>> + env DEBUG=yes VERBOSE=yes make check -C tests TESTS=mv/hard-link-1 >> log > 2>&1 > > FWIW, 'make -C' is GNU make-specific, the portable equivalent would be > cd tests && env DEBUG=yes VERBOSE=yes make check TESTS=... Good po

Re: [PATCH] maint: mention how to run a single test in HACKING docs

2009-02-13 Thread Ralf Wildenhues
> Pádraig Brady draigBrady.com> wrote: > > + env DEBUG=yes VERBOSE=yes make check -C tests TESTS=mv/hard-link-1 >> log 2>&1 FWIW, 'make -C' is GNU make-specific, the portable equivalent would be cd tests && env DEBUG=yes VERBOSE=yes make check TESTS=... and catering to even more ugly make iss

Re: Bug on df command-unable to kill a hanging df process

2009-02-13 Thread Pádraig Brady
Ernesto Quiroz wrote: > Hello > > > > I am unable to kill a hanging df process by using kill -9 . > > Situation: We have an NFS mount on one of our servers. The network link > went down before the NFS mount was properly unmounted. df state is just being held by the kernel, and it's not allowi