Revision: 10649
Author:   [email protected]
Date:     Wed Feb  8 09:20:35 2012
Log:      Bash completion for d8: fix directory name completion

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

Review URL: https://chromiumcodereview.appspot.com/9363025
http://code.google.com/p/v8/source/detail?r=10649

Modified:
 /branches/bleeding_edge/tools/bash-completion.sh

=======================================
--- /branches/bleeding_edge/tools/bash-completion.sh Tue Feb 7 04:40:48 2012 +++ /branches/bleeding_edge/tools/bash-completion.sh Wed Feb 8 09:20:35 2012
@@ -48,8 +48,8 @@
     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