Index: tools/bash-completion.sh |
diff --git a/tools/bash-completion.sh b/tools/bash-completion.sh |
index 07d9a5c51546037e264b8245b4d37996e54648f1..9f65c677317536ae284b29f362e6aa5fce4b88fd 100755 |
--- a/tools/bash-completion.sh |
+++ b/tools/bash-completion.sh |
@@ -48,8 +48,8 @@ _v8_flag() { |
cat src/d8.cc \ |
| grep "strcmp(argv\[i\]" \ |
| sed -ne 's/^[^"]*"--\([^"]*\)".*/--\1/p') |
- COMPREPLY=($(compgen -W "$targets" -- "$cur") $(compgen -f -- "$cur")) |
+ COMPREPLY=($(compgen -W "$targets" -- "$cur")) |
return 0 |
} |
-complete -F _v8_flag d8 |
+complete -F _v8_flag -f d8 |