Reviewers: Yang,

Message:
PTAL.

Description:
Bash completion for d8: fix directory name completion

TEST="out/ia32.release/d8 te<tab>" gets completed to "test/" with trailing slash


Please review this at https://chromiumcodereview.appspot.com/9363025/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  M tools/bash-completion.sh


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


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to