]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bash-completion: accept files for --bind/--bind-ro options
authorFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 25 Apr 2019 18:07:03 +0000 (20:07 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 26 Apr 2019 06:06:23 +0000 (08:06 +0200)
shell-completion/bash/systemd-nspawn

index b4bcba88829bc2712f489f3da1302f609ed40ff4..941ea9090b02debe065ffb5153db3cfd4eb1ef23 100644 (file)
@@ -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