From: Clint Adams <schizo@debian.org>
To: zsh-workers@sunsite.dk
Cc: Vincent Lefevre <vincent@vinc17.org>, 448732-forwarded@bugs.debian.org
Subject: Re: Bug#448732: zsh: printf %g -0 outputs 0 instead of -0
Date: Wed, 31 Oct 2007 12:38:38 -0400 [thread overview]
Message-ID: <20071031163838.GA21586@scowler.net> (raw)
In-Reply-To: <20071031121911.GA2242@vin.lip.ens-lyon.fr>
I believe the gist is that since %g calls for a float, -0 should be
parsed as negative zero.
On Wed, Oct 31, 2007 at 01:19:11PM +0100, Vincent Lefevre wrote:
> vin:~> printf "%g %g\n" -0 -0.
> 0 -0
>
> whereas with the printf from the coreutils on etch:
>
> courge:~> /usr/bin/printf "%g %g\n" -0 -0.
> -0 -0
>
> (this will not work on sid due to the bug 448723, but this is a
> different bug since the zsh behavior is the same on any OS).
>
> Discussion:
> https://www.opengroup.org/sophocles/show_mail.tpl?CALLER=show_archive.tpl&source=L&listname=austin-group-l&id=11150
> https://www.opengroup.org/sophocles/show_mail.tpl?CALLER=show_archive.tpl&source=L&listname=austin-group-l&id=11151
> https://www.opengroup.org/sophocles/show_mail.tpl?CALLER=show_archive.tpl&source=L&listname=austin-group-l&id=11156
> https://www.opengroup.org/sophocles/show_mail.tpl?CALLER=show_archive.tpl&source=L&listname=austin-group-l&id=11159
> https://www.opengroup.org/sophocles/show_mail.tpl?CALLER=show_archive.tpl&source=L&listname=austin-group-l&id=11160
next parent reply other threads:[~2007-10-31 16:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20071031121911.GA2242@vin.lip.ens-lyon.fr>
2007-10-31 16:38 ` Clint Adams [this message]
2007-11-06 10:46 ` Peter Stephenson
2007-11-12 14:26 ` Vincent Lefevre
2007-11-12 14:30 ` Peter Stephenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071031163838.GA21586@scowler.net \
--to=schizo@debian.org \
--cc=448732-forwarded@bugs.debian.org \
--cc=vincent@vinc17.org \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
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 NNTP newsgroup(s).