From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: PATCH: typeset -P
Date: Sat, 30 Sep 2017 13:48:51 +0100 [thread overview]
Message-ID: <20170930134851.503623ed@ntlworld.com> (raw)
In-Reply-To: <170929155533.ZM15802@torch.brasslantern.com>
On Fri, 29 Sep 2017 15:55:33 -0700
Bart Schaefer <schaefer@brasslantern.com> wrote:
> I'm ambivalent about this choice of option letter, though. What about
> something entirely unlikely to conflict, like -1 (ala "ls -1")? Then
> e.g. one could use the idiom "typeset -p1" to make it obvious.
Handling integer options is difficult as the option parser has special
arrangements. Optional integer arguments are possible, so we could
enforce this as -p1, i.e. your idiom becomes the required syntax. I
think I've got this working; I'll send it later with documentation and
tests.
pws
next prev parent reply other threads:[~2017-09-30 19:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-29 19:50 Fw: " Peter Stephenson
2017-09-29 22:55 ` Bart Schaefer
2017-09-30 12:48 ` Peter Stephenson [this message]
2017-09-30 19:46 ` Peter Stephenson
2017-10-01 0:11 ` Bart Schaefer
2017-10-01 16:48 ` Peter Stephenson
2017-10-01 17:06 ` Bart Schaefer
-- strict thread matches above, loose matches on Subject: below --
2017-09-28 20:12 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=20170930134851.503623ed@ntlworld.com \
--to=p.w.stephenson@ntlworld.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).