Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: typeset -P
- X-seq: zsh-workers 41798
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: PATCH: typeset -P
- Date: Sat, 30 Sep 2017 13:48:51 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ntlworld.com; s=meg.feb2017; t=1506775732; bh=mLCdmT9NgN5LeB85p09S/wUWX/yhzGgpR1jIDG7lTI4=; h=Date:From:To:Subject:In-Reply-To:References; b=6COVDds0xBmVVi509B5xzo7rO3HFHnB05kFbxrasUKEikU0RCQSCLPdIusZlRC75e BEbbGfM2Hm8f6hVCcl6f4VJo69gS4yuZPHgiYZj7e411C8TW5m1XOPUX4zVwzFH0os +L2wADlMtjDe7Q6McLQSymLJ+4woOcG5DtAPEuGVGxFCJbJsaLFbpbEyzrqT9dSGzQ V/2g/G9mIVIioEXDlSpZAnhQWrYmReROWglf1WSjaZhZcm6zdMykfszTyln9uVd7lN rNYKbqhNsTuSYwMYtr5Q+L40j8zTEELrbEczTs+ZpCxdCSeWPy/X4UFpk/KcrSCp2e ePcwl2Z/+CnQw==
- In-reply-to: <170929155533.ZM15802@torch.brasslantern.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20170929205059.5fa7eb4d@ntlworld.com> <170929155533.ZM15802@torch.brasslantern.com>
On Fri, 29 Sep 2017 15:55:33 -0700
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author