Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PR] vcs_info-examples: optimize +vi-git-untracked() #76
- X-seq: zsh-workers 49133
- From: "Suraj N. Kurapati" <sunaku@xxxxxxxxxx>
- To: Oliver Kiddle <opk@xxxxxxx>
- Cc: zsh-workers@xxxxxxx
- Subject: Re: [PR] vcs_info-examples: optimize +vi-git-untracked() #76
- Date: Mon, 28 Jun 2021 10:16:48 -0700
- Archived-at: <https://zsh.org/workers/49133>
- In-reply-to: <96030-1624785233.702771@PUMF.Qbc8.FJES>
- List-id: <zsh-workers.zsh.org>
- References: <20210626230903.43ba5516@ratham> <96030-1624785233.702771@PUMF.Qbc8.FJES>
On Sun, 27 Jun 2021 11:13:53 +0200, Oliver Kiddle wrote:
> > Speed up the prompt on large and/or deep working directories by
> > stopping grep(1) as soon as it finds a single match, with `-q`.
>
> The -q option to grep isn't strictly portable. It is certainly lacking
> on Solaris.
POSIX (IEEE Std 1003.1-2017) says that grep(1) supports the `-q` option:
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/grep.html
Consequently, I'm surprised to hear that Solaris doesn't implement this.
Attachment:
pgpiHdozqIqg8.pgp
Description: OpenPGP digital signature
Messages sorted by:
Reverse Date,
Date,
Thread,
Author