From 903492cce2786d202d707ebbfb1946bbcdc3bc67 Mon Sep 17 00:00:00 2001 From: Rangi42 Date: Sun, 3 Aug 2025 13:08:36 -0400 Subject: [PATCH] Fully support `rgbasm -MC` in Bash completion script --- contrib/bash_compl/_rgbasm.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/bash_compl/_rgbasm.bash b/contrib/bash_compl/_rgbasm.bash index 1ec6c85a..22d3746a 100755 --- a/contrib/bash_compl/_rgbasm.bash +++ b/contrib/bash_compl/_rgbasm.bash @@ -61,7 +61,7 @@ _rgbasm_completions() { parse_short_opt() { # These options act like a long option (= takes up the entire word), but only use a single dash # So, they need some special handling - if [[ "$1" = "-M"[GP] ]]; then + if [[ "$1" = "-M"[CGP] ]]; then state=normal optlen=${#1} return; @@ -146,7 +146,7 @@ _rgbasm_completions() { # It is, try to complete one mapfile -t COMPREPLY < <(compgen -W "${opts[*]%%:*}" -P '--' -- "${cur_word#--}") return 0 - elif [[ "$cur_word" = '-M'[GPQT] ]]; then + elif [[ "$cur_word" = '-M'[CGPQT] ]]; then # These options act like long opts with no arguments, so return them and exactly them COMPREPLY=( "$cur_word" ) return 0