zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: zsh-workers@sunsite.dk
Subject: printf
Date: Tue, 30 Oct 2001 16:23:04 +0000	[thread overview]
Message-ID: <3BDED3E8.9D2B2B47@yahoo.co.uk> (raw)

In case anyone was unsure, printf is not entirely finished. I've got a
couple more questions before I do any more on it though.

I have established that the ksh behaviour of -r with -f is not going to
change (they can't be used together). This leaves the possibility of
overloading the -r option to prevent format reuse when combined with
-f. Does anyone have any preference on whether I should overload this
option letter or use a different letter (for which I can't think of a
suitable available letter)?

As Peter suggested a while back, the ideal would be to update
convfloat() and convbase() to be flexible enough to do the outputting.
Currently convfloat() just uses printf(3). Does anyone know of any
established algorithms for converting floats to their ASCII
representations? Or does anyone have any suitable code I could crib? I
expect that something of this sort exists and would be better than
whatever I might re-invent.

I'd like to be able to support the ' (thousand grouping) and I (use
locale format) flags and the a,A,F conversion specifiers. I'd also like
to try to handle this sort of thing better:
    printf '%*s' 100000000 ' ' > /tmp/f
and of course, allow print -f to be used with -s and -z.

Oliver

_____________________________________________________________________
This message has been checked for all known viruses by the 
MessageLabs Virus Scanning Service. For further information visit
http://www.messagelabs.com/stats.asp


             reply	other threads:[~2001-10-30 16:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-30 16:23 Oliver Kiddle [this message]
2001-10-30 16:41 ` printf Peter Stephenson
2001-10-30 17:02   ` printf Oliver Kiddle
2001-11-01 17:16 ` printf Peter Stephenson
2001-11-01 18:17   ` printf Oliver Kiddle
2001-11-01 18:32     ` printf 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=3BDED3E8.9D2B2B47@yahoo.co.uk \
    --to=okiddle@yahoo.co.uk \
    --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).