[Bash-completion-devel] Bug#770641: bash-completion: mv --target-directory=dest/ only looks for directories for first source

Steve Cotton steve at s.cotton.clara.co.uk
Sat Nov 22 20:20:31 UTC 2014


Package: bash-completion
Version: 1:2.1-4
Severity: normal

For "mv --target-directory=dest", the next argument only
completes to directories, even though auto-completion of "mv --t"
has used combined "option=value" form to include the target
directory in the first argument.

$ mkdir dest
$ mkdir sourcedir
$ touch sourcefile
$ mv --t
At this point, <tab> will correctly complete that to --target-directory=

$ mv --target-directory=d
At this point, <tab> will correctly complete that to --target-directory=dest/

$ mv --target-directory=dest/ s
BUG: This will complete to "sourcedir", ignoring the option of "sourcefile"

$ mv --target-directory=dest/ argument s
This is ok, it will see both source* possibilities.

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages bash-completion depends on:
ii  bash  4.3-11+b1
ii  dpkg  1.17.21

bash-completion recommends no packages.

bash-completion suggests no packages.

-- no debconf information



More information about the Bash-completion-devel mailing list