From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 32390 invoked from network); 27 Jun 2021 10:05:21 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 27 Jun 2021 10:05:21 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1624788321; b=0cx5j36HGyresJvQrKINpQdWo8WfD5HYn9bbPyPi5HzL7sRJN2yL7gr0KBOTDfEc5jJecvlg9a Shi3IBRH0ikDuTGSoA0pF///SeXHu9lCYgeUpEkk7gh7IT+2KqJ77XHvCo2Ekwz1BENgov50z7 gPQhC3Z5pvr1+RPp21whWnLZhXJbcq2vxpji0YsB5hmPaGvCAzrvmcYh6QrSMIzLJPGQsjhOyc Er+SQVnpHbJrjMXoQtYAZS2+5VKf/L1gK0dHiuFo8REsPVVYu2Zg8BDQRWNCxqNoinLQWzb3c6 5gTXcHkTDeKYwCyhK0CXKicknMG7qwMXBh8otA2vqIySMQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (smtprelay01.ispgateway.de) smtp.remote-ip=80.67.18.43; dmarc=none header.from=zsh.org; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1624788321; bh=thyrN/xTKwHohCG1lhNro9Dy5rUtyqdX3+RM3w78vA4=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:MIME-Version: Message-ID:Date:References:In-Reply-To:Subject:Cc:To:From:DKIM-Signature; b=JBgqZBl9doAUWL2uSZHlkbsL12R6rRjdJdSN8vUHisCgxP1SCXw5XJbMVGe+cDtIiXyQbr5UzC Ie+ro+BtDyumEYh/pQIXqB+EumWRpzeoMlWUQO0bNobvc3CtaznKUZrG389wfyMGY+VIu5WSs9 2U9LQLRhvcRR/m8Xg6YduCnYMa7zCxWKK/cqi0qEAIGNEWoZXpdP/fi/Hf7gVxbq+Y071qx+ST sm/5A2xWwlh4f1aNj/LH3DPtpc0cRLfWJFe6XFWuQANBTgNKQzMEi3qLdjqoQrfHyapVpoIrGX NMVlBjnN9XXrZShh+fbB0GAUY917JNtree/M0toLEZOESA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To:Subject:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=dI5n4XXtqPTeP69+iPxv2RrTzBwD0w0CW+rDSya7vT0=; b=DQGiEMXub2ppJEjZKOu600hWUb DzcghQlCpvCK9ceWOqbBjldo4swFVUq5Zxhm/5x90/w+u2Prk/vsxnVXI6lmB4N5bsladeh7oHe20 c9u6sBPk029kcJVvvG/Ejv5RUqyihsDM9AEtiC4TohJNby1urvw8hnJQ+7VbtZjuV4s98oe8STMkI c0DFLd8a0vsRSJ4MXFfPDm14LCvUd24HafoZM538ENy9AzJp6CJx2tW97Roy8OHzTeSS1ifgTc7zx Lb+jwD/RoAY4lhZmIYP8iWfG8Y2PA2YwKknV8mg7tkZ0zMXPq3ugCqZokSU1em5IrV8l5EVithuP8 FU2H5HPw==; Received: from authenticated user by zero.zsh.org with local id 1lxRfE-0009zB-Q1; Sun, 27 Jun 2021 10:05:20 +0000 Authentication-Results: zsh.org; iprev=pass (smtprelay01.ispgateway.de) smtp.remote-ip=80.67.18.43; dmarc=none header.from=zsh.org; arc=none Received: from smtprelay01.ispgateway.de ([80.67.18.43]:44213) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1lxRey-0009hU-Ex; Sun, 27 Jun 2021 10:05:05 +0000 Received: from [62.155.198.93] (helo=jim.voodoo.lan) by smtprelay01.ispgateway.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1lxRet-0005nz-MG; Sun, 27 Jun 2021 12:04:59 +0200 Received: by jim.voodoo.lan (Postfix, from userid 1000) id DE08F5FE2B8; Sun, 27 Jun 2021 12:04:56 +0200 (CEST) From: Frank Terbeck To: Oliver Kiddle Cc: "Suraj N. Kurapati" , zsh-workers@zsh.org Subject: Re: [PR] vcs_info-examples: optimize +vi-git-untracked() #76 In-Reply-To: <96030-1624785233.702771@PUMF.Qbc8.FJES> (Oliver Kiddle's message of "Sun, 27 Jun 2021 11:13:53 +0200") References: <20210626230903.43ba5516@ratham> <96030-1624785233.702771@PUMF.Qbc8.FJES> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Date: Sun, 27 Jun 2021 12:04:56 +0200 Message-ID: <87y2avr5br.fsf@ft.bewatermyfriend.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Df-Sender: NDMwNDQ0 X-Seq: 49131 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Oliver Kiddle wrote: > "Suraj N. Kurapati" wrote: [=E2=80=A6] >> 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. It is more reliable with egrep but that may not be faster. > It does seem to be there on Linux and the main BSDs so I don't know > whether we should still care about this. I think having this in an example is fine. We're using "grep -q" in other places, too. Not that it matters much, but =E2=80=98-q=E2=80=99 is p= art of SUSv3. Maybe vendors should be asked to implement it therefore. :) In any case, I think its use in examples of documentation is fine. If you're plagued with an implementation that doesn't implement -q, you get to work around it. Regards, Frank --=20 In protocol design, perfection has been reached not when there is nothing left to add, but when there is nothing left to take away. -- RFC 1925