From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id CB4B81F934 for ; Tue, 5 Jan 2021 09:04:37 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 1/4] lei: completion: fix filename completion Date: Tue, 5 Jan 2021 09:04:34 +0000 Message-Id: <20210105090437.22801-2-e@80x24.org> In-Reply-To: <20210105090437.22801-1-e@80x24.org> References: <20210105090437.22801-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: "-o default" is what we want from "complete", "-o filename" just tells readline the result from the "_lei" function might be a filename and quote appropriately. --- contrib/completion/lei-completion.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/completion/lei-completion.bash b/contrib/completion/lei-completion.bash index 5f47433b..0b82b109 100644 --- a/contrib/completion/lei-completion.bash +++ b/contrib/completion/lei-completion.bash @@ -8,4 +8,4 @@ _lei() { -- "${COMP_WORDS[COMP_CWORD]}")) return 0 } -complete -o filenames -o bashdefault -F _lei lei +complete -o default -o bashdefault -F _lei lei