zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.stephenson@samsung.com>
To: zsh workers <zsh-workers@zsh.org>
Subject: Re: Number of psvar entries
Date: Wed, 13 Mar 2013 09:38:52 +0000	[thread overview]
Message-ID: <20130313093852.6ca67303@pwslap01u.europe.root.pri> (raw)
In-Reply-To: <CAHYJk3RQxp6NUNGm482T=kzvbAF+PXYTrc5Q7fpzaKcwVVDQ6Q@mail.gmail.com>

On Wed, 13 Mar 2013 10:03:20 +0100
Mikael Magnusson <mikachu@gmail.com> wrote:
> The manpage tells us
> 
> psvar <S> <Z> (PSVAR <S>)
>  An array (colon-separated list) whose first nine values can be used
> in PROMPT strings.  Setting psvar also sets PSVAR, and vice versa.
> 
> but
> 
> % psvar[25]=hello; print -P %25v
> hello
> 
> Am I missing something?

Evidently the manual page is...  That restriction certainly goes way
back to very early versions of zsh.  It's possible numeric argument
handling in prompts was original limited and we upgraded it to handle
any integer that fits in integer precision; I don't actually remember
that happening, but I do remember the prompt code evolving quite a lot.
If it happened, I've a suspicion it would have been way back before the
CVS archive.

In which case the manual page simply needs updating.

pws


  parent reply	other threads:[~2013-03-13  9:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-13  9:03 Mikael Magnusson
2013-03-13  9:31 ` Nikolai Weibull
2013-03-13  9:38 ` Peter Stephenson [this message]
2013-03-13 16:59   ` Bart Schaefer

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=20130313093852.6ca67303@pwslap01u.europe.root.pri \
    --to=p.stephenson@samsung.com \
    --cc=zsh-workers@zsh.org \
    /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).