From 0f49a8a0338dab302db877631068c0469cb88e19 Mon Sep 17 00:00:00 2001 From: Nicolai Dagestad Date: Thu, 3 Feb 2022 17:31:57 +0100 Subject: [PATCH] Fix bash completion for lists of short options --- CHANGELOG.md | 2 ++ completions/bash/foot | 2 +- completions/bash/footclient | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1f267fa2..770a64dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -105,6 +105,8 @@ * Wrong mouse binding triggered when doing two mouse selections in very quick (< 300ms) succession (https://codeberg.org/dnkl/foot/issues/883). +* Bash completion giving an error when completing a list of short + options ### Security diff --git a/completions/bash/foot b/completions/bash/foot index f9d9d0fd..1fdab062 100644 --- a/completions/bash/foot +++ b/completions/bash/foot @@ -75,7 +75,7 @@ _foot() : # don't autocomplete for these flags else # complete commands from $PATH - COMPREPLY=( $(compgen -c ${cur}) ) + COMPREPLY=( $(compgen -c -- ${cur}) ) fi return 0 diff --git a/completions/bash/footclient b/completions/bash/footclient index fea45945..9f752641 100644 --- a/completions/bash/footclient +++ b/completions/bash/footclient @@ -66,7 +66,7 @@ _footclient() : # don't autocomplete for these flags else # complete commands from $PATH - COMPREPLY=( $(compgen -c ${cur}) ) + COMPREPLY=( $(compgen -c -- ${cur}) ) fi return 0