diff --git a/gio/completion/gio b/gio/completion/gio index aab70f483..2e993ce81 100644 --- a/gio/completion/gio +++ b/gio/completion/gio @@ -68,8 +68,8 @@ __gio_location() { # List files local files=() local names=() - local name size type - while IFS=$'\t' read -r name size type; do + local name type + while IFS=$'\t' read -r name _ type; do # Escape name properly local escaped_name escaped_name="$(printf "%q" "$name")" diff --git a/gio/completion/gresource b/gio/completion/gresource index fca4be4d2..43f48cb9c 100644 --- a/gio/completion/gresource +++ b/gio/completion/gresource @@ -7,11 +7,10 @@ #################################################################################################### __gresource() { - local choices coffset section + local choices coffset if [ "${COMP_CWORD}" -gt 2 ]; then if [ "${COMP_WORDS[1]}" = --section ]; then - section=${COMP_WORDS[2]} coffset=2 else coffset=0