I tested the commands in the description and comment #4. I get the options for ls not valgrind, and I don't get the behaviour described in comment #4.
$ valgrind -- ls -<TAB><TAB> --all --almost-all --author --block-size= --classify --color --color= --context --dereference --dereference-command-line --dereference-command-line-symlink-to-dir --directory --dired --escape --file-type --format= --group-directories-first --help --hide= --hide-control-chars --human-readable --ignore= --ignore-backups --More--
$ valgrind -- nan<TAB> $ valgrind -- nano
$ apt list valgrind Listing... Done valgrind/trusty-proposed,now 1:3.10.1-1ubuntu3~14.04 amd64 [installed]
I tested the commands in the description and comment #4. I get the options for ls not valgrind, and I don't get the behaviour described in comment #4.
$ valgrind -- ls -<TAB><TAB> command- line command- line-symlink- to-dir directories- first control- chars
--all
--almost-all
--author
--block-size=
--classify
--color
--color=
--context
--dereference
--dereference-
--dereference-
--directory
--dired
--escape
--file-type
--format=
--group-
--help
--hide=
--hide-
--human-readable
--ignore=
--ignore-backups
--More--
$ valgrind -- nan<TAB>
$ valgrind -- nano
$ apt list valgrind trusty- proposed, now 1:3.10. 1-1ubuntu3~ 14.04 amd64 [installed]
Listing... Done
valgrind/