A feature-rich command-line audio/video downloader
[devscripts] Fix filename/directory Bash completions (#13620)
barsnick99093e96fd6a
diff --git a/devscripts/bash-completion.in b/devscripts/bash-completion.inindex 21f52798ed..bb66c20956 100644--- a/devscripts/bash-completion.in+++ b/devscripts/bash-completion.in@@ -10,9 +10,13 @@ __yt_dlp()diropts="--cache-dir"if [[ ${prev} =~ ${fileopts} ]]; then+ local IFS=$'\n'+ type compopt &>/dev/null && compopt -o filenamesCOMPREPLY=( $(compgen -f -- ${cur}) )return 0elif [[ ${prev} =~ ${diropts} ]]; then+ local IFS=$'\n'+ type compopt &>/dev/null && compopt -o dirnamesCOMPREPLY=( $(compgen -d -- ${cur}) )return 0fi