From: Frantisek Sumsal Date: Thu, 25 Apr 2019 18:07:03 +0000 (+0200) Subject: bash-completion: accept files for --bind/--bind-ro options X-Git-Tag: v243-rc1~517 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=afa879c3b42bcb948e2a01eb378a24f26fd64a6f;p=thirdparty%2Fsystemd.git bash-completion: accept files for --bind/--bind-ro options --- diff --git a/shell-completion/bash/systemd-nspawn b/shell-completion/bash/systemd-nspawn index b4bcba88829..941ea9090b0 100644 --- a/shell-completion/bash/systemd-nspawn +++ b/shell-completion/bash/systemd-nspawn @@ -102,8 +102,8 @@ _systemd_nspawn() { comps='no auto guest try-guest host try-host' ;; --bind|--bind-ro) - compopt -o nospace - comps=$(compgen -S/ -A directory -- "$cur" ) + compopt -o nospace -o filenames + comps=$(compgen -f -- "$cur" ) ;; --tmpfs) compopt -o nospace