From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5E94E1581C1 for ; Thu, 4 Jul 2024 19:32:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9A8B6E2A21; Thu, 4 Jul 2024 19:32:56 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7D3D3E2A21 for ; Thu, 4 Jul 2024 19:32:56 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 965CA335C96 for ; Thu, 4 Jul 2024 19:32:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 08C4AAE0 for ; Thu, 4 Jul 2024 19:32:54 +0000 (UTC) From: "Arthur Zamarin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" Message-ID: <1720121564.aa9418b5e9ffefd14d3abc483c99db586c599ce4.arthurzam@gentoo> Subject: [gentoo-commits] proj/pkgcore/pkgcore:master commit in: data/share/bash-completion/completions/ X-VCS-Repository: proj/pkgcore/pkgcore X-VCS-Files: data/share/bash-completion/completions/pquery X-VCS-Directories: data/share/bash-completion/completions/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: aa9418b5e9ffefd14d3abc483c99db586c599ce4 X-VCS-Branch: master Date: Thu, 4 Jul 2024 19:32:54 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 93befcda-3d38-4ed9-93c6-1e0645d3d662 X-Archives-Hash: e2fbdf51ad9aaddc9e210b900b89c6f0 commit: aa9418b5e9ffefd14d3abc483c99db586c599ce4 Author: Arthur Zamarin gentoo org> AuthorDate: Thu Jul 4 19:32:44 2024 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Thu Jul 4 19:32:44 2024 +0000 URL: https://gitweb.gentoo.org/proj/pkgcore/pkgcore.git/commit/?id=aa9418b5 bash-completion: use _filedir This handles spaces and such much much better Signed-off-by: Arthur Zamarin gentoo.org> data/share/bash-completion/completions/pquery | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/data/share/bash-completion/completions/pquery b/data/share/bash-completion/completions/pquery index eedb9a1bb..7711f6b47 100644 --- a/data/share/bash-completion/completions/pquery +++ b/data/share/bash-completion/completions/pquery @@ -105,7 +105,7 @@ _pquery() { COMPREPLY=($(compgen -W "${boolean_options[*]}" -- "${cur}")) ;; --config) - COMPREPLY=($(compgen -f -- "${cur}")) + _filedir ;; --domain) COMPREPLY=() @@ -128,8 +128,9 @@ _pquery() { fi ;; -r | --repo) - COMPREPLY=($(compgen -W "$(_parsereposconf -l)" -- "${cur}")) - COMPREPLY+=($(compgen -d -- "${cur}")) + _filedir -d + COMPREPLY+=($(compgen -W "$(_parsereposconf -l)" -- "${cur}")) + # COMPREPLY+=($(compgen -d -- "${cur}")) ;; --highlight-dep | --print-revdep) COMPREPLY=()