bug#9614: date ignoring wrong TZ values

2011-09-27 Thread Paul Eggert
On 09/27/11 22:44, Sandro Santilli wrote: > A warning/error message with hint on how to correctly form > the string would be very friendly for users Unfortunately, there's no portable way to determine which TZ values are supported on the current platform. One cannot even reliably determine whether

bug#9614: date ignoring wrong TZ values

2011-09-27 Thread Sandro Santilli
On Wed, Sep 28, 2011 at 12:19:22AM +0200, Andreas Schwab wrote: > Pádraig Brady writes: > > > $ TZ=GB-Eire+1 date > > A POSIX timezone name cannot have dashes. Doesn't all these "can't have" and "undefined" specs mean we do can warn or error out w/out breakin POSIX compatibility ? > > $ TZ=Jap

bug#9614: date ignoring wrong TZ values

2011-09-27 Thread Sandro Santilli
On Tue, Sep 27, 2011 at 11:52:22PM +0200, Andreas Schwab wrote: > Pádraig Brady writes: > > > On 09/27/2011 03:09 PM, Sandro Santilli wrote: > >> I've been puzzled by date(1) giving weird results > >> when setting TZ to values unknown by zoneinfo. > >> > >> As far as: > >> > >> $ TZ=Fake date

bug#9614: date ignoring wrong TZ values

2011-09-27 Thread Andreas Schwab
Pádraig Brady writes: > $ TZ=GB-Eire+1 date A POSIX timezone name cannot have dashes. > $ TZ=Japan+1 date This is a well-formed POSIX timezone. > $ TZ=Japan date This is a non-POSIX timezone that happens to match an Olson timezone. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key

bug#9614: date ignoring wrong TZ values

2011-09-27 Thread Pádraig Brady
On 09/27/2011 10:47 PM, Andreas Schwab wrote: > Pádraig Brady writes: > >> $ TZ=NZ+1 date # No zone reported > > This is undefined. A zone name in a POSIX time zone must have at least > three letters. I considered that, but it seems inconsequential in this case. I'd advise people to stay clea

bug#9614: date ignoring wrong TZ values

2011-09-27 Thread Andreas Schwab
Pádraig Brady writes: > $ TZ=NZ+1 date # No zone reported This is undefined. A zone name in a POSIX time zone must have at least three letters. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something c

bug#9614: date ignoring wrong TZ values

2011-09-27 Thread Andreas Schwab
Pádraig Brady writes: > On 09/27/2011 03:09 PM, Sandro Santilli wrote: >> I've been puzzled by date(1) giving weird results >> when setting TZ to values unknown by zoneinfo. >> >> As far as: >> >> $ TZ=Fake date >> Tue Sep 27 14:06:32 Fake 2011 > > Yes, that is per POSIX. This is not a POSIX

bug#9612: sort: avoid a NaN-induced infloop

2011-09-27 Thread Andreas Schwab
Paul Eggert writes: > On 09/27/11 13:07, Andreas Schwab wrote: >> Padding bits can change any time. > > Is there any way to compare the non-padding parts of long doubles? By ignoring the padding. > There ought to be *some* way to get the fractional part of a NaN, no? You need to inspect the by

bug#9620: dd: bogus behavior when interrupted

2011-09-27 Thread Alan Curry
=?UTF-8?Q?P=C3=A1draig?= Brady writes: > > BTW that ^C being displayed (started around Fedora 11 time (2.6.30)) > is very annoying, especially when inserted in the middle of an ANSI code. > I mentioned that previously here: > http://mail.linux.ie/pipermail/ilug/2011-February/106723.html I've been

bug#9620: dd: bogus behavior when interrupted

2011-09-27 Thread Pádraig Brady
On 09/27/2011 08:33 PM, Paul Eggert wrote: > This happened with coreutils 8.13 on Fedora 14 x86-64 > (coreutils compiled with GCC 4.6.1). I interrupted > 'dd' with control-C, but it didn't respond right away; > instead, it churned away and created the entire output file, > issuing a bogus diagnost

bug#9614: date ignoring wrong TZ values

2011-09-27 Thread Pádraig Brady
On 09/27/2011 07:19 PM, Pádraig Brady wrote: > On 09/27/2011 03:09 PM, Sandro Santilli wrote: >> I've been puzzled by date(1) giving weird results >> when setting TZ to values unknown by zoneinfo. >> >> As far as: >> >> $ TZ=Fake date >> Tue Sep 27 14:06:32 Fake 2011 > > Yes, that is per POSIX.

bug#9612: sort: avoid a NaN-induced infloop

2011-09-27 Thread John Reiser
> Is there any way to compare the non-padding parts of long doubles? > There ought to be *some* way to get the fractional part of a NaN, no? frexp() [man 3 frexp] would be the right idea, except that it fails explicitly for NaN. --

bug#9620: dd: bogus behavior when interrupted

2011-09-27 Thread John Reiser
On 09/27/2011 12:33 PM, Paul Eggert wrote: > This happened with coreutils 8.13 on Fedora 14 x86-64 > (coreutils compiled with GCC 4.6.1). I interrupted > 'dd' with control-C, but it didn't respond right away; > instead, it churned away and created the entire output file, > issuing a bogus diagnost

bug#9612: sort: avoid a NaN-induced infloop

2011-09-27 Thread Jim Meyering
Paul Eggert wrote: > On 09/27/11 13:07, Andreas Schwab wrote: >> Padding bits can change any time. > > Is there any way to compare the non-padding parts of long doubles? > There ought to be *some* way to get the fractional part of a NaN, no? > For example, with glibc, is there some way to sprintf t

bug#9612: sort: avoid a NaN-induced infloop

2011-09-27 Thread Paul Eggert
On 09/27/11 13:07, Andreas Schwab wrote: > Padding bits can change any time. Is there any way to compare the non-padding parts of long doubles? There ought to be *some* way to get the fractional part of a NaN, no? For example, with glibc, is there some way to sprintf to a buffer and get the fracti

bug#9612: sort: avoid a NaN-induced infloop

2011-09-27 Thread Andreas Schwab
Jim Meyering writes: > However, I am dismayed that with glibc's strtold the values of those bits > is not deterministic. Padding bits can change any time. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for so

bug#9614: date ignoring wrong TZ values

2011-09-27 Thread Sandro Santilli
On Tue, Sep 27, 2011 at 07:19:12PM +0100, Pádraig Brady wrote: > On 09/27/2011 03:09 PM, Sandro Santilli wrote: > > I've been puzzled by date(1) giving weird results > > when setting TZ to values unknown by zoneinfo. > > > > As far as: > > > > $ TZ=Fake date > > Tue Sep 27 14:06:32 Fake 2011 >

bug#9620: dd: bogus behavior when interrupted

2011-09-27 Thread Paul Eggert
This happened with coreutils 8.13 on Fedora 14 x86-64 (coreutils compiled with GCC 4.6.1). I interrupted 'dd' with control-C, but it didn't respond right away; instead, it churned away and created the entire output file, issuing a bogus diagnostic about the input file. Here's the transcript: $ d

bug#9614: date ignoring wrong TZ values

2011-09-27 Thread Pádraig Brady
On 09/27/2011 03:09 PM, Sandro Santilli wrote: > I've been puzzled by date(1) giving weird results > when setting TZ to values unknown by zoneinfo. > > As far as: > > $ TZ=Fake date > Tue Sep 27 14:06:32 Fake 2011 Yes, that is per POSIX. One can specify info about the timezone in TZ like TZ="F

bug#9612: sort: avoid a NaN-induced infloop

2011-09-27 Thread Jim Meyering
Andreas Schwab wrote: > Jim Meyering writes: > >> The statement "long double x = NAN;" (inside glibc's strtold) leaves many >> bits of "x" uninitialized. > > You are looking at padding bits, which have unspecified contents. I realize that they are unspecified. That is why I did not claim that thi

bug#9614: date ignoring wrong TZ values

2011-09-27 Thread Sandro Santilli
I've been puzzled by date(1) giving weird results when setting TZ to values unknown by zoneinfo. As far as: $ TZ=Fake date Tue Sep 27 14:06:32 Fake 2011 It would be more helpful if the command raised an error or warning about "unknown" timezones rather than giving random dates. It's particul

bug#9612: sort: avoid a NaN-induced infloop

2011-09-27 Thread Andreas Schwab
Jim Meyering writes: > The statement "long double x = NAN;" (inside glibc's strtold) leaves many > bits of "x" uninitialized. You are looking at padding bits, which have unspecified contents. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D

bug#9612: sort: avoid a NaN-induced infloop

2011-09-27 Thread Jim Meyering
This was reported by Aaron Denney in http://bugs.debian.org/642557. Who would have thought that including a few NaNs in the input to sort would make it infloop. The original failure arose only when sort was reading from a pipe: yes -- -nan | head -156903 | sort -g > /dev/null But it's not a

bug#6331: [sshfs] bug#6331: df reports wrong disk space usage on solaris

2011-09-27 Thread Miklos Szeredi
Jim, Any news about this bug? This problem was again reported against a recent Debian release here: http://article.gmane.org/gmane.comp.file-systems.fuse.sshfs/1200 Thanks, Miklos

bug#9611: Copy an item with its parent directory

2011-09-27 Thread Pádraig Brady
tags 9611 notabug On 09/27/2011 02:23 PM, Peng Yu wrote: > Hi, > > Suppose I have a file 'a/b/c/d/e/f', I want to copy it to 'target' > with the parent 'd/e'. I.e., the resulted file is 'target/d/e/f'. > > I can make a bash script to do so, but I wondering if there is an > existing command or op

bug#9611: Copy an item with its parent directory

2011-09-27 Thread Peng Yu
Hi, Suppose I have a file 'a/b/c/d/e/f', I want to copy it to 'target' with the parent 'd/e'. I.e., the resulted file is 'target/d/e/f'. I can make a bash script to do so, but I wondering if there is an existing command or option. Thanks! -- Regards, Peng