Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: typeset -P



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