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

Re: _arguments optspecs (was Re: Editing the history in the shell)



One other thing ...

On Mon, May 25, 2020 at 10:29 AM Oliver Kiddle <okiddle@xxxxxxxxxxx> wrote:
>
>         '4:history size';;

Doc says:

     The forms for ACTION are as follows.

      (single unquoted space)
          This is useful where an argument is required but it is not
          possible or desirable to generate matches for it.  The MESSAGE
          will be displayed but no completions listed.  Note that even
          in this case the colon at the end of the MESSAGE is needed; it
          may only be omitted when neither a MESSAGE nor an ACTION is
          given.

That seems to imply that you can write "4:" or "4:history size: " but
not what you did write.  Is the doc wrong?



Messages sorted by: Reverse Date, Date, Thread, Author