Received: by mail.netbsd.org (Postfix, from userid 605) id F09C684D62; Sat, 27 Mar 2021 18:55:03 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 1D57F84D59 for ; Sat, 27 Mar 2021 18:55:03 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id pxcSDBnMupsy for ; Sat, 27 Mar 2021 18:55:02 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id A75B784C86 for ; Sat, 27 Mar 2021 18:55:02 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 99CACFA95; Sat, 27 Mar 2021 18:55:02 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Sat, 27 Mar 2021 14:55:02 -0400 From: "Christos Zoulas" Subject: CVS commit: src/lib/libedit To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20210327185502.99CACFA95@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Christos Zoulas" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: christos Date: Sat Mar 27 18:55:02 UTC 2021 Modified Files: src/lib/libedit: filecomplete.c filecomplete.h Log Message: Add fn_complete2() that controls the quoting of the returned match. Before it was based on the heuristic that we were not supplied an attempted_completion_function, which worked well because programs that supplied that function were not shells and did not want/understand shell quoting. Recently though Piotr Stefaniak wanted to enhance command completion for the Bourne Shell and this could benefit quoting the returned command. This function adds an extra flags argument that controls that quoting. To generate a diff of this commit: cvs rdiff -u -r1.64 -r1.65 src/lib/libedit/filecomplete.c cvs rdiff -u -r1.11 -r1.12 src/lib/libedit/filecomplete.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.